eselect: prune unused eselect modules

This commit is contained in:
Michael Marineau 2015-04-17 12:54:00 -07:00
parent 0a115201ee
commit 83ebbf5e5b
9 changed files with 0 additions and 375 deletions

View File

@ -1,21 +0,0 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-fontconfig/eselect-fontconfig-1.0.ebuild,v 1.18 2007/12/29 11:40:34 vapier 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
}

View File

@ -1,205 +0,0 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-fontconfig/files/fontconfig.eselect-1.0,v 1.1 2007/07/28 02:50:13 dirtyepic 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 :

View File

@ -1,8 +0,0 @@
DIST cl.h.1.1.xz 6940 RMD160 697d52b04bba416c233433ff5b9cba47d7327631 SHA1 2092a622e1494f0a31c1371147bc87478226b44b SHA256 11b0249ec6c35000686cfe775b1789fa010b6d058e123b00c720e8408881f13f
DIST cl.hpp.1.1.xz 14764 RMD160 009ff35d03da82b8271785077d94f046193f91d6 SHA1 096b0e0fd42d841effa24c6323cf109aa2f6ecce SHA256 5d90ef4d964a6365d8e9305913c85dd0ffe6916df0a151a116b1b58b0e6c7ef4
DIST cl_ext.h.1.1.xz 2740 RMD160 f2debb481b3f3c94cbca5a50bb77fb571c9538dd SHA1 f7c759f6d8077e6d1eb222d1acb4a9638bee4741 SHA256 aeb729345004bf67d2564e1dc55feb326ff017f3b291ffb8e1391de353e09620
DIST cl_gl.h.1.1.xz 1856 RMD160 e92b5e843322c9e78f3fe72da43c1502109dc1f5 SHA1 3c4ad063ea5e4ee232b273cecbb85abf17dbf112 SHA256 eeddf3403c13776b3d13a25c9e47a01eee750c0120f74d402fad5d78b29f925a
DIST cl_gl_ext.h.1.1.xz 1356 RMD160 0ba4c5d6f3c1d119d7a8844abd43b83db987b565 SHA1 829ae549cdd0de3878626858fb041d5a424ebd96 SHA256 594e463e3a24e62870c5c1914b05e796aeda8892bf6830ee8db3f722993fdf02
DIST cl_platform.h.1.1.xz 5584 RMD160 034d4be552aa3ddb6cc45718c5aa7a195d7f3f59 SHA1 bdc027789de959d1aa33e70de8af90dd103780d3 SHA256 2f70eb47285fd46f75d48476e90ee3b7e9ba62166bc573bbb35cb0f9d7a2ea53
DIST eselect-opencl-1.1.0-r1.tar.xz 3276 RMD160 fb4286c58d95c9b839e3a24ee23b454a131e58f0 SHA1 59ed09d2059a2f48ce840ff4ac97106a799d854b SHA256 86a2f5f152e543046899989b3a12a065dfc357a2276ce06d69d19bdbf175fdea
DIST opencl.h.1.1.xz 944 RMD160 d9c8ee867a0068fbb05624d48d9e236d0f43acd3 SHA1 2b94aff101b7a3ee4261957b6d46edd6b81faf24 SHA256 c076e410eaffd9fbb056528f31a59fe1908481f0fd38981c13970727a0c4d096

View File

@ -1,58 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opencl/eselect-opencl-1.1.0-r1.ebuild,v 1.5 2012/05/16 14:43:18 aballier Exp $
EAPI=4
CL_ABI=1.1
inherit multilib
DESCRIPTION="Utility to change the OpenCL implementation being used"
HOMEPAGE="http://www.gentoo.org/"
# Source:
# http://www.khronos.org/registry/cl/api/${CL_ABI}/opencl.h
# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_platform.h
# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl.h
# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_ext.h
# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_gl.h
# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_gl_ext.h
# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl.hpp
MIRROR="http://dev.gentoo.org/~xarthisius/distfiles/"
SRC_URI="${MIRROR}/opencl.h.${CL_ABI}.xz
${MIRROR}/cl_platform.h.${CL_ABI}.xz
${MIRROR}/cl.h.${CL_ABI}.xz
${MIRROR}/cl_ext.h.${CL_ABI}.xz
${MIRROR}/cl_gl.h.${CL_ABI}.xz
${MIRROR}/cl_gl_ext.h.${CL_ABI}.xz
${MIRROR}/cl.hpp.${CL_ABI}.xz
${MIRROR}/${P}-r1.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86 ~amd64-fbsd ~x86-fbsd"
IUSE=""
DEPEND="app-arch/xz-utils"
RDEPEND=">=app-admin/eselect-1.2.4"
pkg_postinst() {
local impl="$(eselect opencl show)"
if [[ -n "${impl}" && "${impl}" != '(none)' ]] ; then
eselect opencl set "${impl}"
fi
}
src_install() {
insinto /usr/share/eselect/modules
doins opencl.eselect
#doman opencl.eselect.5
local headers=( opencl.h cl_platform.h cl.h cl_ext.h cl_gl.h cl_gl_ext.h cl.hpp )
insinto /usr/$(get_libdir)/OpenCL/global/include/CL
cd "${WORKDIR}"
for f in ${headers[@]}; do
newins ${f}.${CL_ABI} ${f}
done
}

View File

@ -1,3 +0,0 @@
DIST eselect-opengl-1.2.4.tar.xz 8084 RMD160 aec98af9a228506814e4a4c39468a2589bf4b646 SHA1 6aa6be26ad77f97d7f75c649390c9b378dcbf372 SHA256 d8b53c214131a1aad1aeded78d03d23aa40901d10b2fb7d420617765014ec2fd
DIST glext.h.67.xz 57476 RMD160 83376003bbd9b203d2b4776cd7138e48df01e8df SHA1 d7073293eddfdb5ee6c0b4cdb883a6899324a604 SHA256 d1d7887e72cd415651166ade3da5a407ca28ea99807a0bd6e064163cb6c55cd3
DIST glxext.h.32.xz 7296 RMD160 c7d330af7308b99afe3a3cfd7e5662150dafcb78 SHA1 ec5d6bf0eaccf244afa78ff43bcebf630d3e7312 SHA256 06ef740c3741f367c787bb77fc5bf46405c7eeec4a4a5f1cf8c303b8719cbf5a

View File

@ -1,48 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opengl/eselect-opengl-1.2.4.ebuild,v 1.1 2011/08/18 18:15:01 vapier Exp $
EAPI=4
inherit multilib
DESCRIPTION="Utility to change the OpenGL interface being used"
HOMEPAGE="http://www.gentoo.org/"
# Source:
# http://www.opengl.org/registry/api/glext.h
# http://www.opengl.org/registry/api/glxext.h
GLEXT="67"
GLXEXT="32"
MIRROR="http://dev.gentooexperimental.org/~scarabeus/"
SRC_URI="${MIRROR}/glext.h.${GLEXT}.xz
${MIRROR}/glxext.h.${GLXEXT}.xz
mirror://gentoo/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE=""
DEPEND="app-arch/xz-utils"
RDEPEND=">=app-admin/eselect-1.2.4"
pkg_postinst() {
local impl="$(eselect opengl show)"
if [[ -n "${impl}" && "${impl}" != '(none)' ]] ; then
eselect opengl set "${impl}"
fi
}
src_install() {
insinto "/usr/share/eselect/modules"
doins opengl.eselect
doman opengl.eselect.5
# Install global glext.h and glxext.h
insinto "/usr/$(get_libdir)/opengl/global/include"
cd "${WORKDIR}"
newins glext.h.${GLEXT} glext.h
newins glxext.h.${GLXEXT} glxext.h
}

View File

@ -1,8 +0,0 @@
DEFINED_PHASES=install
DESCRIPTION=An eselect module to manage /etc/fonts/conf.d symlinks.
HOMEPAGE=http://www.gentoo.org
KEYWORDS=alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd
LICENSE=GPL-2
RDEPEND=app-admin/eselect >=media-libs/fontconfig-2.4
SLOT=0
_md5_=64e8c9d7f0ac280964a1c85df3c8f2ba

View File

@ -1,12 +0,0 @@
DEFINED_PHASES=install postinst
DEPEND=app-arch/xz-utils
DESCRIPTION=Utility to change the OpenCL implementation being used
EAPI=4
HOMEPAGE=http://www.gentoo.org/
KEYWORDS=amd64 x86 ~amd64-fbsd ~x86-fbsd
LICENSE=GPL-2
RDEPEND=>=app-admin/eselect-1.2.4
SLOT=0
SRC_URI=http://dev.gentoo.org/~xarthisius/distfiles//opencl.h.1.1.xz http://dev.gentoo.org/~xarthisius/distfiles//cl_platform.h.1.1.xz http://dev.gentoo.org/~xarthisius/distfiles//cl.h.1.1.xz http://dev.gentoo.org/~xarthisius/distfiles//cl_ext.h.1.1.xz http://dev.gentoo.org/~xarthisius/distfiles//cl_gl.h.1.1.xz http://dev.gentoo.org/~xarthisius/distfiles//cl_gl_ext.h.1.1.xz http://dev.gentoo.org/~xarthisius/distfiles//cl.hpp.1.1.xz http://dev.gentoo.org/~xarthisius/distfiles//eselect-opencl-1.1.0-r1.tar.xz
_eclasses_=multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
_md5_=9b9221e13948d5c0d0158f806d39a277

View File

@ -1,12 +0,0 @@
DEFINED_PHASES=install postinst
DEPEND=app-arch/xz-utils
DESCRIPTION=Utility to change the OpenGL interface being used
EAPI=4
HOMEPAGE=http://www.gentoo.org/
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris
LICENSE=GPL-2
RDEPEND=>=app-admin/eselect-1.2.4
SLOT=0
SRC_URI=http://dev.gentooexperimental.org/~scarabeus//glext.h.67.xz http://dev.gentooexperimental.org/~scarabeus//glxext.h.32.xz mirror://gentoo/eselect-opengl-1.2.4.tar.xz
_eclasses_=multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
_md5_=149b77cd327a06286ef082333d6d6c16