ports/Mk/Scripts/desktop-categories.sh
Robert Clausecker 6e2da9672f filesystems: add new category for file systems and related utilities
The filesystems category houses file systems and file system utilities.
It is added mainly to turn the sysutils/fusefs-* pseudo-category into
a proper one, but is also useful for the sundry of other file systems
related ports found in the tree.

Ports that seem like they belong there are moved to the new category.
Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are
not moved as they currently don't fetch and don't have TIMESTAMP set
in their distinfo, but that is required to be able to push a rename
of the port by the pre-receive hook.

Approved by:	portmgr (rene)
Reviewed by:	mat
Pull Request:	https://github.com/freebsd/freebsd-ports/pull/302
PR:		281988
2024-11-06 16:17:35 +01:00

92 lines
2.7 KiB
Bash

#!/bin/sh
#
# MAINTAINER: portmgr@FreeBSD.org
set -e
set -o pipefail
. "${dp_SCRIPTSDIR}/functions.sh"
validate_env dp_CATEGORIES dp_SORT dp_TR dp_ECHO_CMD
[ -n "${DEBUG_MK_SCRIPTS}" ] || [ -n "${DEBUG_MK_SCRIPTS_DESKTOP_CATEGORIES}" ] && set -x
set -u
categories=""
for native_category in ${dp_CATEGORIES}; do
c=""
case ${native_category} in
accessibility) c="Utility Accessibility" ;;
archivers) c="Utility Archiving" ;;
astro) c="Education Science Astronomy" ;;
audio) c="AudioVideo Audio" ;;
benchmarks) c="System" ;;
biology) c="Education Science Biology" ;;
budgie) c="Budgie GTK" ;;
cad) c="Graphics Engineering" ;;
comms) c="Utility" ;;
converters) c="Utility" ;;
databases) c="Office Database" ;;
deskutils) c="Utility" ;;
devel) c="Development" ;;
dns) c="Network" ;;
elisp) c="Development" ;;
editors) c="Utility" ;;
education) c="Education" ;;
emulators) c="System Emulator" ;;
finance) c="Office Finance" ;;
filesystems) c="System Filesystem" ;;
ftp) c="Network FileTransfer" ;;
games) c="Game" ;;
geography) c="Education Science Geography" ;;
gnome) c="GNOME GTK" ;;
graphics) c="Graphics" ;;
hamradio) c="HamRadio" ;;
haskell) c="Development" ;;
irc) c="Network IRCClient" ;;
java) c="Development Java" ;;
kde) c="KDE Qt" ;;
lang) c="Development" ;;
lisp) c="Development" ;;
mail) c="Office Email" ;;
mate) c="MATE GTK" ;;
math) c="Education Science Math" ;;
mbone) c="Network AudioVideo" ;;
multimedia) c="AudioVideo" ;;
net) c="Network" ;;
net-im) c="Network InstantMessaging" ;;
net-mgmt) c="Network" ;;
net-p2p) c="Network P2P" ;;
net-vpn) c="Network VPN" ;;
news) c="Network News" ;;
parallel) c="ParallelComputing" ;;
pear) c="Development WebDevelopment" ;;
perl5) c="Development" ;;
python) c="Development" ;;
ruby) c="Development" ;;
rubygems) c="Development" ;;
scheme) c="Development" ;;
science) c="Science Education" ;;
security) c="System Security" ;;
shells) c="System Shell" ;;
sysutils) c="System" ;;
tcl*|tk*) c="Development" ;;
textproc) c="Utility TextTools" ;;
www) c="Network" ;;
x11-clocks) c="Utility Clock" ;;
x11-fm) c="System FileManager" ;;
xfce) c="GTK XFCE" ;;
zope) c="Development WebDevelopment" ;;
esac
if [ -n "${c}" ]; then
categories="${categories} ${c}"
fi
done
if [ -n "${categories}" ]; then
for c in ${categories}; do
${dp_ECHO_CMD} "${c}"
done | ${dp_SORT} -u | ${dp_TR} '\n' ';'
${dp_ECHO_CMD}
fi