diff options
author | Ulrich Müller <ulm@gentoo.org> | 2015-03-31 16:48:42 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2015-03-31 16:48:42 +0000 |
commit | 2582c8d307fcc483177e68f55ba5e8496bf2d62f (patch) | |
tree | 024e7329cf3ddfd4471bea00a0e62450d3ca0987 /app-eselect | |
parent | Move package from app-admin to app-eselect category. (diff) | |
download | gentoo-2-2582c8d307fcc483177e68f55ba5e8496bf2d62f.tar.gz gentoo-2-2582c8d307fcc483177e68f55ba5e8496bf2d62f.tar.bz2 gentoo-2-2582c8d307fcc483177e68f55ba5e8496bf2d62f.zip |
Move package from app-admin to app-eselect category.
(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 9433907D693FB5B8!)
Diffstat (limited to 'app-eselect')
5 files changed, 364 insertions, 0 deletions
diff --git a/app-eselect/eselect-fontconfig/ChangeLog b/app-eselect/eselect-fontconfig/ChangeLog new file mode 100644 index 000000000000..494b5e112ead --- /dev/null +++ b/app-eselect/eselect-fontconfig/ChangeLog @@ -0,0 +1,110 @@ +# ChangeLog for app-eselect/eselect-fontconfig +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-eselect/eselect-fontconfig/ChangeLog,v 1.1 2015/03/31 16:48:42 ulm Exp $ + + 31 Mar 2015; Ulrich Müller <ulm@gentoo.org> +eselect-fontconfig-1.0.ebuild, + +eselect-fontconfig-1.1.ebuild, +files/fontconfig.eselect-1.0, +metadata.xml: + Move package from app-admin to app-eselect category. + + 10 Aug 2014; Patrick Lauer <patrick@gentoo.org> eselect-fontconfig-1.0.ebuild, + eselect-fontconfig-1.1.ebuild: + Fix description for more repoman happy + + 10 Jun 2014; Mike Frysinger <vapier@gentoo.org> eselect-fontconfig-1.1.ebuild: + Mark arm64/m68k/s390/sh stable. + + 19 Feb 2013; Zac Medico <zmedico@gentoo.org> eselect-fontconfig-1.1.ebuild: + Add ~arm-linux keyword. + + 26 Apr 2012; Alexis Ballier <aballier@gentoo.org> + eselect-fontconfig-1.1.ebuild: + keyword ~amd64-fbsd + + 02 Dec 2011; Markos Chandras <hwoarang@gentoo.org> + eselect-fontconfig-1.1.ebuild: + Stable on amd64 wrt bug #391523 + + 01 Dec 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> + eselect-fontconfig-1.1.ebuild: + x86 stable wrt bug #391523 + + 29 May 2011; Fabian Groffen <grobian@gentoo.org> + eselect-fontconfig-1.1.ebuild: + Marked ~m68k-mint, bug #365205 + + 01 Jan 2010; Christian Faulhammer <fauli@gentoo.org> + eselect-fontconfig-1.1.ebuild: + Transfer Prefix keywords + +*eselect-fontconfig-1.1 (14 Nov 2009) + + 14 Nov 2009; Ryan Hill <dirtyepic@gentoo.org> + +eselect-fontconfig-1.1.ebuild: + Version bump. Support for --brief by ulm (bug #292104). Prefixy goodness. + + 24 Dec 2007; Brent Baude <ranger@gentoo.org> + eselect-fontconfig-1.0.ebuild: + Marking eselect-fontconfig-1.0 ppc64 for bug 202869 + + 21 Dec 2007; nixnut <nixnut@gentoo.org> eselect-fontconfig-1.0.ebuild: + Stable on ppc wrt bug 202869 + + 21 Dec 2007; Raúl Porcel <armin76@gentoo.org> + eselect-fontconfig-1.0.ebuild: + alpha/ia64 stable wrt #202869 + + 20 Dec 2007; Dawid Węgliński <cla@gentoo.org> + eselect-fontconfig-1.0.ebuild: + Stable on x86 (bug #202869) + + 20 Dec 2007; Ferris McCormick <fmccor@gentoo.org> + eselect-fontconfig-1.0.ebuild: + Sparc stable --- Bug #202869 --- seems to work as it should. + + 20 Dec 2007; Jeroen Roovers <jer@gentoo.org> + eselect-fontconfig-1.0.ebuild: + Stable for HPPA (bug #202869). + + 20 Dec 2007; Doug Klima <cardoe@gentoo.org> eselect-fontconfig-1.0.ebuild: + amd64 stable wrt bug #202869 + + 20 Dec 2007; Doug Klima <cardoe@gentoo.org> eselect-fontconfig-1.0.ebuild: + ~sparc-fbsd and ~x86-fbsd for bug #180231 + + 04 Dec 2007; Ryan Hill <dirtyepic@gentoo.org> + eselect-fontconfig-1.0.ebuild: + Mark ~m86k for bug #180231. + + 01 Aug 2007; Joshua Kinard <kumba@gentoo.org> + eselect-fontconfig-1.0.ebuild: + Marked unstable on mips, per #180231. + + 30 Jul 2007; Markus Rothe <corsair@gentoo.org> ChangeLog: + Added ~ppc64; bug #180231 + + 30 Jul 2007; Gustavo Zacarias <gustavoz@gentoo.org> + eselect-fontconfig-1.0.ebuild: + Keyworded ~sparc wrt #180231 + + 28 Jul 2007; Luca Barbato <lu_zero@gentoo.org> + eselect-fontconfig-1.0.ebuild: + Marked ~ppc ~ppc64 + + 28 Jul 2007; Steve Dibb <beandog@gentoo.org> + eselect-fontconfig-1.0.ebuild: + Add ~amd64, bug 180231 + + 28 Jul 2007; Raúl Porcel <armin76@gentoo.org> + eselect-fontconfig-1.0.ebuild: + Add ~alpha/~ia64/~x86 wrt #180231 + + 28 Jul 2007; Jeroen Roovers <jer@gentoo.org> + eselect-fontconfig-1.0.ebuild: + Marked ~hppa (bug #180231). + +*eselect-fontconfig-1.0 (28 Jul 2007) + + 28 Jul 2007; Ryan Hill <dirtyepic@gentoo.org> + +files/fontconfig.eselect-1.0, +metadata.xml, + +eselect-fontconfig-1.0.ebuild: + Initial import. Many thanks to Cardoe for contributing the module. diff --git a/app-eselect/eselect-fontconfig/eselect-fontconfig-1.0.ebuild b/app-eselect/eselect-fontconfig/eselect-fontconfig-1.0.ebuild new file mode 100644 index 000000000000..fc606a49c120 --- /dev/null +++ b/app-eselect/eselect-fontconfig/eselect-fontconfig-1.0.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-eselect/eselect-fontconfig/eselect-fontconfig-1.0.ebuild,v 1.1 2015/03/31 16:48:42 ulm Exp $ + +DESCRIPTION="An eselect module to manage /etc/fonts/conf.d symlinks" +HOMEPAGE="http://www.gentoo.org" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd" +IUSE="" + +DEPEND="" +RDEPEND="app-admin/eselect + >=media-libs/fontconfig-2.4" + +src_install() { + insinto /usr/share/eselect/modules + newins "${FILESDIR}/fontconfig.eselect-${PV}" fontconfig.eselect || die +} diff --git a/app-eselect/eselect-fontconfig/eselect-fontconfig-1.1.ebuild b/app-eselect/eselect-fontconfig/eselect-fontconfig-1.1.ebuild new file mode 100644 index 000000000000..e78728306485 --- /dev/null +++ b/app-eselect/eselect-fontconfig/eselect-fontconfig-1.1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-eselect/eselect-fontconfig/eselect-fontconfig-1.1.ebuild,v 1.1 2015/03/31 16:48:42 ulm Exp $ + +DESCRIPTION="An eselect module to manage /etc/fonts/conf.d symlinks" +HOMEPAGE="http://www.gentoo.org" +SRC_URI="mirror://gentoo/fontconfig.eselect-${PV}.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 m68k ~mips ~ppc ~ppc64 s390 sh ~sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +DEPEND="" +RDEPEND=">=app-admin/eselect-1.2.3 + >=media-libs/fontconfig-2.4" + +S=${WORKDIR} + +src_install() { + insinto /usr/share/eselect/modules + newins "${S}"/fontconfig.eselect-${PV} fontconfig.eselect || die +} diff --git a/app-eselect/eselect-fontconfig/files/fontconfig.eselect-1.0 b/app-eselect/eselect-fontconfig/files/fontconfig.eselect-1.0 new file mode 100644 index 000000000000..0fa2d154ce40 --- /dev/null +++ b/app-eselect/eselect-fontconfig/files/fontconfig.eselect-1.0 @@ -0,0 +1,205 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-eselect/eselect-fontconfig/files/fontconfig.eselect-1.0,v 1.1 2015/03/31 16:48:42 ulm Exp $ + +DESCRIPTION="Manage fontconfig /etc/fonts/conf.d/ symlinks" +MAINTAINER="fonts@gentoo.org" +VERSION="1.0" + +find_targets() { + local targets bc x i=0 + bcdirs[i]="${ROOT}/etc/fonts/conf.avail/*.conf" + + if [[ -n "${ES_FONTCONFIG_DIRS}" ]] ; then + for x in ${ES_FONTCONFIG_DIRS} ; do + bcdirs[$((++i))]="${x}/*" + done + fi + + for bc in ${bcdirs[@]} ; do + [[ -e ${bc} && ${bc} != *~ ]] && targets="${targets}\n$(basename ${bc})" + done + + echo -ne ${targets} | sort -u +} + +is_enabled() { + bcdir="${ROOT}/etc/fonts/conf.d" + + [[ -e ${bcdir}/${1} ]] || return 1 + return 0 +} + +### list action ### + +describe_list() { + echo "List available fontconfig .conf files" +} + +do_list() { + local opts + targets=( $(find_targets) ) + write_list_start "Available fontconfig .conf files ( $(highlight '*') is enabled ):" + + if [[ -n "${targets[@]}" ]] ; then + for (( n = 0 ; n < ${#targets[@]} ; ++n )) ; do + is_enabled ${opts:-} ${targets[${n}]} && \ + targets[${n}]="${targets[${n}]} $(highlight '*')" + done + write_numbered_list "${targets[@]}" + else + write_kv_list_entry "(none found)" "" + fi + + return 0 +} + +### enable action ### + +describe_enable() { + echo "Enable specified fontconfig .conf file(s)" +} + +describe_enable_parameters() { + echo "<target>" +} + +describe_enable_options() { + echo "<target> : Target name or number (from 'list' action)" +} + +do_enable() { + local bc bcdir="${ROOT}/etc/fonts/conf.d" + + [[ -z ${1} ]] && die -q "You didn't specify any .conf files to enable" + + # create directory if necessary + if [[ ! -d ${bcdir} && -w $(dirname ${bcdir}) ]] ; then + mkdir ${bcdir} || die -q "Failed to create ${bcdir}" + elif [[ ! -d ${bcdir} ]] ; then + die -q "You don't have permission to create ${bcdir}" + fi + + # make sure we have proper permissions + [[ -w ${bcdir} ]] || \ + die -q "You don't have permission to write to ${bcdir}" + + targets=( $(find_targets) ) + + for bc in $@ ; do + local file target=${bc} + + is_number "${target}" && \ + target=${targets[$(( ${target} - 1 ))]} + + [[ -z "${target}" ]] && \ + die -q "Target \"${bc}\" doesn't appear to be valid!" + + bc=${target} + + # ignore any unrecognized options + [[ ${bc} == --* ]] && continue + + # what form is the argument in? + case "${bc}" in + # absolute path + /*) + file="${ROOT}/${bc}" + ;; + # relative path + */*) + file="${ROOT}/${PWD}/${bc}" + ;; + # no path + *) + # CWD + if [[ -f ${bc} ]] ; then + file="${ROOT}/${PWD}/${bc}" + # assume /etc/fonts/conf.avail + elif [[ -f ${ROOT}/etc/fonts/conf.avail/${bc} ]] + then + file="${ROOT}/etc/fonts/conf.avail/${bc}" + else + if [[ -n "${ES_FONTCONFIG_DIRS}" ]] ; then + for x in ${ES_FONTCONFIG_DIRS} ; do + [[ -f ${x}/${bc} ]] && file="${x}/${bc}" + done + fi + + [[ -e ${file} ]] || \ + file="${ROOT}/etc/fonts/conf.avail/${bc}" + fi + ;; + esac + + # does it exist? + if [[ ! -e ${file} ]] ; then + write_error_msg "${file} doesn't exist" + continue + fi + + # already installed? + if [[ -e ${bcdir}/$(basename ${bc}) ]] ; then + write_error_msg "$(basename ${bc}) is already installed" + continue + fi + + # finally, create the symlink + ln -s "${file}" "${bcdir}" || \ + die -q "Failed to create symlink from '${file}' to '${bcdir}'" + done +} + +### disable action ### + +describe_disable() { + echo "Disable specified fontconfig .conf file(s)" +} + +describe_disable_parameters() { + echo "<target>" +} + +describe_disable_options() { + echo "<target> : Target name or number (from 'list' action)" +} + + +do_disable() { + local bc bcdir="${ROOT}/etc/fonts/conf.d" + + [[ -z ${1} ]] && die -q "You didn't specify any .conf files to disable" + + targets=( $(find_targets) ) + + for bc in $@ ; do + local file target=${bc} + + is_number "${target}" && \ + target=${targets[$(( ${target} - 1 ))]} + + [[ -z "${target}" ]] && \ + die -q "Target \"${bc}\" doesn't appear to be valid!" + + bc=${target} + file="${bcdir}/${bc}" + + # ignore any unrecognized options + [[ ${bc} == --* ]] && continue + + # is in installed? + if [[ ! -e ${file} ]] ; then + write_error_msg "${bc} is not installed" + continue + fi + + # remove it if we have permissions + if [[ -w $(dirname ${file}) ]] ; then + rm "${file}" || die -q "Failed to remove ${file}" + else + die -q "You don't have permission to remove ${file}" + fi + done +} + +# vim: set ft=eselect : diff --git a/app-eselect/eselect-fontconfig/metadata.xml b/app-eselect/eselect-fontconfig/metadata.xml new file mode 100644 index 000000000000..64cc0b687d48 --- /dev/null +++ b/app-eselect/eselect-fontconfig/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>fonts</herd> +</pkgmetadata> |