| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/fontconfig-infinality/fontconfig-infinality-20120619.ebuild,v 1.3 2013/01/25 11:05:42 ago Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
DESCRIPTION="Configuration to be used in conjunction with the freetype-infinality subpixel hinting"
|
| 8 |
HOMEPAGE="http://www.infinality.net/blog/infinality-freetype-patches/"
|
| 9 |
SRC_URI="http://dev.gentoo.org/~yngwin/distfiles/${P}.tar.xz
|
| 10 |
nyx? ( http://dev.gentoo.org/~yngwin/distfiles/fontconfig-nyx-1.tar.xz )"
|
| 11 |
|
| 12 |
LICENSE="MIT"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="amd64 x86"
|
| 15 |
IUSE="+nyx"
|
| 16 |
|
| 17 |
DEPEND=""
|
| 18 |
RDEPEND="app-admin/eselect-fontconfig
|
| 19 |
app-admin/eselect-infinality
|
| 20 |
app-admin/eselect-lcdfilter
|
| 21 |
>=x11-libs/libXft-2.3.0
|
| 22 |
nyx? ( media-fonts/croscorefonts )"
|
| 23 |
PDEPEND="media-libs/freetype:2[infinality]"
|
| 24 |
|
| 25 |
src_configure() {
|
| 26 |
:
|
| 27 |
}
|
| 28 |
|
| 29 |
src_compile() {
|
| 30 |
:
|
| 31 |
}
|
| 32 |
|
| 33 |
src_install() {
|
| 34 |
dodoc infinality/{CHANGELOG,CHANGELOG.pre_git,README}
|
| 35 |
|
| 36 |
insinto /etc/fonts/conf.avail
|
| 37 |
doins conf.avail/52-infinality.conf
|
| 38 |
|
| 39 |
insinto /etc/fonts/infinality
|
| 40 |
doins -r infinality/{conf.src,styles.conf.avail,infinality.conf}
|
| 41 |
|
| 42 |
insinto /etc/X11/
|
| 43 |
doins "${FILESDIR}"/Xresources
|
| 44 |
|
| 45 |
if use nyx ; then
|
| 46 |
insinto /etc/fonts/infinality/styles.conf.avail
|
| 47 |
doins -r "${WORKDIR}"/nyx
|
| 48 |
fi
|
| 49 |
}
|
| 50 |
|
| 51 |
pkg_postinst() {
|
| 52 |
elog "Use eselect fontconfig enable 52-infinality.conf"
|
| 53 |
elog "to enable the configuration"
|
| 54 |
elog "Then use eselect infinality to set your fontconfig style"
|
| 55 |
elog "and eselect lcdfilter to set freetype variables"
|
| 56 |
}
|