summaryrefslogtreecommitdiff
path: root/app-text/sgml-common
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
commitd87262dd706fec50cd150aab3e93883b6337466d (patch)
tree246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-text/sgml-common
parent71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-text/sgml-common')
-rw-r--r--app-text/sgml-common/Manifest5
-rw-r--r--app-text/sgml-common/files/sgml-common-0.6.3-install-catalog.in182
-rw-r--r--app-text/sgml-common/files/sgml-common-0.6.3-prefix.patch17
-rw-r--r--app-text/sgml-common/metadata.xml5
-rw-r--r--app-text/sgml-common/sgml-common-0.6.3-r6.ebuild79
5 files changed, 0 insertions, 288 deletions
diff --git a/app-text/sgml-common/Manifest b/app-text/sgml-common/Manifest
deleted file mode 100644
index 8a5e70d5df70..000000000000
--- a/app-text/sgml-common/Manifest
+++ /dev/null
@@ -1,5 +0,0 @@
-AUX sgml-common-0.6.3-install-catalog.in 5064 BLAKE2B 2400dd32a80a64c89ded54d898a2331b649a35269bd3389e6c71c9f161b5b02b857230a6c7f4807cb975ff4c7d6a99a5576d2bb79190e5914c9faf9488e1d11a SHA512 85fbcdd7aceb28256e08ca1a5b6472247d81499e604d6a45edabf662bc32b72a22326db907e2a408b1a6da02deccd89606749e3fc8e42594ad6402ab29d501b9
-AUX sgml-common-0.6.3-prefix.patch 664 BLAKE2B 5b82b66824547c0cbae10f12c94eaccaa0789c1ff68a20c3ace00cc1620dc0e2d7c81cf906db8fac82104b9d1c5ea29af42746b200f1c1a5a9e9728052f5859c SHA512 62758c7ccb4e86e91292757546e6a1f932cf8282abfc2d9ccfe2e68008bbcc995d0a4eeac3f0c8584c4dfae552a42000b438defe38dc911b770a9e8e72b310ef
-DIST sgml-common-0.6.3-gentoo.tar.gz 128903 BLAKE2B 3b374179fe85cf6f098649d2014f9d34349ddccd17ae0ac4c5502414507601c545eaf27f7c76fafd63c36041068205d3b82309a204989f3b106c04c7adf14875 SHA512 c8de573d707ccf524407c9be9a6e7740341eb88ecb6bee69d6d11a2658ef74e6acfb7495afa33c9983ab015c3c925aac98278a4e01ee217892a9fb99e60798ce
-EBUILD sgml-common-0.6.3-r6.ebuild 2481 BLAKE2B b4b4945c34f62854ef6db9c1bdaee90ad0814f44e705875a6da1b80956aeff8829d087dfc34939f5dc8edd60d184d8d6d9247a1d4754aec30ad82c7661962b98 SHA512 15d48f36f85740b8fd4c5a056b6483ced6fbe8919b43942928b32fae2c9367a5f07f29eb507918c7d50afb9e403f339e969de16fda5c447e19181a50c461809d
-MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84
diff --git a/app-text/sgml-common/files/sgml-common-0.6.3-install-catalog.in b/app-text/sgml-common/files/sgml-common-0.6.3-install-catalog.in
deleted file mode 100644
index bd261669064e..000000000000
--- a/app-text/sgml-common/files/sgml-common-0.6.3-install-catalog.in
+++ /dev/null
@@ -1,182 +0,0 @@
-#!@GENTOO_PORTAGE_EPREFIX@/bin/bash
-# Script to install a catalog in the centralized SGML catalog
-# Send any comments to Eric Bischoff <eric@caldera.de>
-# This program is under GPL license. See LICENSE file for details.
-
-# Modified by Gentoo developers to better integrate it to portage.
-# <text-markup@gentoo.org>
-
-# Set help message
-SGML_HELP_MESSAGE="Usage: `basename $0` [<option>] <action>\n\
-where <option> is:\n\
-\040 -d|--delegate: \t\t\t Use DELEGATE instead of CATALOG\n\
-and where <action> is:\n\
-\040 -a|--add <centralized> <ordinary>: \t Declare ordinary catalog in the centralized catalog\n\
-\040 -r|--remove <centralized> <ordinary>:\t Remove ordinary catalog from the centralized catalog\n\
-\040 -h, --help: \t\t\t\t Print this help message and exit\n\
-\040 -v, --version: \t\t\t Print the version number and exit\n"
-
-# Set version message
-SGML_VERSION_MESSAGE="sgml-common version @VERSION@ (install-catalog version 1.0)"
-
-# Set type of pointer
-SGML_POINTER="CATALOG"
-
-# Set action to be performed
-SGML_ACTION=""
-
-# Set catalogs
-SGML_CENTRALIZED=""
-SGML_ORDINARY=""
-
-# Default ROOT value (usually defined by portage)
-[ -z "$ROOT" ] && ROOT="/"
-[[ $ROOT == */ ]] || ROOT="${ROOT}/"
-EPREFIX="@GENTOO_PORTAGE_EPREFIX@"
-EROOT=${ROOT%/}${EPREFIX}/
-
-
-# Process options
-case $1 in
- -d|--delegate) SGML_POINTER="DELEGATE"
- shift 1
- ;;
-esac
-
-# Process actions
-case $1 in
- -a|--add) SGML_ACTION="addition"
- SGML_CENTRALIZED=$2
- SGML_ORDINARY=$3
- ;;
- -r|--remove) if [ -z "$3" -o "$3" = "--version" ]
- then
- echo "install-catalog: Old syntax; doing nothing"
- exit 0
- fi
- SGML_ACTION="removal"
- SGML_CENTRALIZED=$2
- SGML_ORDINARY=$3
- ;;
- -h|--help) echo -e $SGML_HELP_MESSAGE
- exit 0
- ;;
- -v|--version) echo -e $SGML_VERSION_MESSAGE
- exit 0
- ;;
- --install) echo "install-catalog: Old syntax; doing nothing"
- exit 0
- ;;
- *) echo -e $SGML_HELP_MESSAGE >&2
- exit 1
- ;;
-esac
-
-
-# The arguments to this program should always be relative to $ROOT. Here we
-# declare some extra variables to distingish between the absolute and
-# relative paths.
-SGML_ROOT_CENTRALIZED="${ROOT%/}${SGML_CENTRALIZED}"
-SGML_ROOT_ORDINARY="${ROOT%/}${SGML_ORDINARY}"
-
-
-# Check that the super catalog can be created and changed and deleted
-if [ ! -w "${EROOT}etc/sgml" ]
-then
- echo "`basename $0`: unable to write in ${EROOT}etc/sgml." >&2
- exit 2
-fi
-case $SGML_ACTION in
- addition)
- if [ -e "${EROOT}etc/sgml/catalog" -a ! -w "${EROOT}etc/sgml/catalog" ]
- then
- echo "`basename $0`: can not modify \"${EROOT}etc/sgml/catalog\"." >&2
- exit 2
- fi
- ;;
- removal)
- if [ ! -w "${EROOT}etc/sgml/catalog" ]
- then
- echo "`basename $0`: can not modify \"${EROOT}etc/sgml/catalog\"." >&2
- exit 2
- fi
- ;;
-esac
-
-# Check that the centralized catalog can be created, changed and deleted
-if [ -z "$SGML_ROOT_CENTRALIZED" ]
-then
- echo -e $SGML_HELP_MESSAGE >&2
- exit 1
-fi
-case $SGML_ACTION in
- addition)
- if [ -e "$SGML_ROOT_CENTRALIZED" -a ! -w "$SGML_ROOT_CENTRALIZED" ]
- then
- echo "`basename $0`: can not modify \"$SGML_ROOT_CENTRALIZED\"." >&2
- exit 2
- fi
- ;;
- removal)
- if [ ! -w "$SGML_ROOT_CENTRALIZED" ]
- then
- echo "`basename $0`: can not modify \"$SGML_ROOT_CENTRALIZED\"." >&2
- exit 2
- fi
- ;;
-esac
-
-# Check that we have at least one ordinary package to process
-if [ -z "$SGML_ROOT_ORDINARY" ]
-then
- echo -e $SGML_HELP_MESSAGE >&2
- exit 1
-fi
-case $SGML_ACTION in
- addition)
- if [ ! -s "$SGML_ROOT_ORDINARY" ]
- then
- echo "`basename $0`: \"$SGML_ROOT_ORDINARY\" does not exist or is empty." >&2
- exit 2
- fi
- ;;
-esac
-
-# Installation or removal of pointers
-case $SGML_ACTION in
- addition)
- echo "`basename $0`: addition of $SGML_ORDINARY in $SGML_CENTRALIZED"
- if grep -q "$SGML_ORDINARY" "$SGML_ROOT_CENTRALIZED" 2>/dev/null
- then
- echo "Warning: $SGML_ORDINARY is already installed in the centralized catalog $SGML_CENTRALIZED" >&2
- else
- echo "$SGML_POINTER \"$SGML_ORDINARY\"" >> "$SGML_ROOT_CENTRALIZED"
- fi
- grep -q "$SGML_CENTRALIZED" "${EROOT}etc/sgml/catalog" 2>/dev/null
- if [ $? -ne 0 ]
- then
- echo "`basename $0`: addition of $SGML_CENTRALIZED in ${EROOT}etc/sgml/catalog"
- echo "$SGML_POINTER \"$SGML_CENTRALIZED\"" >> "${EROOT}etc/sgml/catalog"
- fi
- ;;
- removal)
- echo "`basename $0`: removal of $SGML_ORDINARY from $SGML_CENTRALIZED"
- if grep -q "$SGML_ORDINARY" "$SGML_ROOT_CENTRALIZED" 2>/dev/null
- then
- sed -e "\:$SGML_POINTER \"$SGML_ORDINARY\":d" < \
- "$SGML_ROOT_CENTRALIZED" > "${SGML_ROOT_CENTRALIZED}.new"
- mv "${SGML_ROOT_CENTRALIZED}.new" "$SGML_ROOT_CENTRALIZED"
- else
- echo "Warning: $SGML_ORDINARY was not found in the centralized catalog $SGML_CENTRALIZED" >&2
- fi
- if [ ! -s "$SGML_ROOT_CENTRALIZED" ]
- then
- rm "$SGML_ROOT_CENTRALIZED"
- echo "`basename $0`: removal of $SGML_CENTRALIZED from ${EROOT}etc/sgml/catalog"
- sed -e "\:$SGML_POINTER \"$SGML_CENTRALIZED\":d" < "${EROOT}etc/sgml/catalog" > "${EROOT}etc/sgml/catalog.new"
- mv "${EROOT}etc/sgml/catalog.new" "${EROOT}etc/sgml/catalog"
- fi
- ;;
-esac
-
-exit 0
diff --git a/app-text/sgml-common/files/sgml-common-0.6.3-prefix.patch b/app-text/sgml-common/files/sgml-common-0.6.3-prefix.patch
deleted file mode 100644
index a116039a8d62..000000000000
--- a/app-text/sgml-common/files/sgml-common-0.6.3-prefix.patch
+++ /dev/null
@@ -1,17 +0,0 @@
---- a/bin/sgmlwhich 2007-10-08 04:21:25 +0200
-+++ b/bin/sgmlwhich 2007-10-08 04:21:36 +0200
-@@ -3,5 +3,5 @@
- # Send any comments to Eric Bischoff <eric@caldera.de>
- # This program is under GPL license. See LICENSE file for details.
-
--echo "/etc/sgml/sgml.conf"
-+echo "@GENTOO_PORTAGE_EPREFIX@/etc/sgml/sgml.conf"
- # Simple, isn't it? ;-)
---- a/config/sgml.conf 2000-11-17 09:36:11 +0100
-+++ b/config/sgml.conf 2007-10-08 04:42:52 +0200
-@@ -1,3 +1,3 @@
- # /etc/sgml/sgml.conf conformant with LSB
--SGML_BASE_DIR=/usr/share/sgml
--SGML_CATALOGS_DIR=/etc/sgml
-+SGML_BASE_DIR=@GENTOO_PORTAGE_EPREFIX@/usr/share/sgml
-+SGML_CATALOGS_DIR=@GENTOO_PORTAGE_EPREFIX@/etc/sgml
diff --git a/app-text/sgml-common/metadata.xml b/app-text/sgml-common/metadata.xml
deleted file mode 100644
index 6f49eba8f496..000000000000
--- a/app-text/sgml-common/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<!-- maintainer-needed -->
-</pkgmetadata>
diff --git a/app-text/sgml-common/sgml-common-0.6.3-r6.ebuild b/app-text/sgml-common/sgml-common-0.6.3-r6.ebuild
deleted file mode 100644
index 2926cea5963c..000000000000
--- a/app-text/sgml-common/sgml-common-0.6.3-r6.ebuild
+++ /dev/null
@@ -1,79 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit prefix
-
-DESCRIPTION="Base ISO character entities and utilities for SGML"
-HOMEPAGE="https://www.iso.org/standard/16387.html"
-SRC_URI="https://dev.gentoo.org/~floppym/dist/${PN}/${P}-gentoo.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~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=""
-
-PATCHES=( "${FILESDIR}"/${P}-prefix.patch )
-
-src_prepare() {
- # We use a hacked version of install-catalog that supports the ROOT
- # variable, puts quotes around the CATALOG files, and can be prefixed.
- cp "${FILESDIR}/${P}-install-catalog.in" "${S}/bin/install-catalog.in" \
- || die "Copy of install-catalog.in failed"
-
- default
- eprefixify bin/install-catalog.in bin/sgmlwhich config/sgml.conf
-}
-
-pkg_postinst() {
- local installer="${EROOT%/}/usr/bin/install-catalog"
- if [[ ! -x ${installer} ]]; then
- eerror "install-catalog not found! Something went wrong!"
- die "install-catalog not found! Something went wrong!"
- fi
-
- einfo "Installing Catalogs..."
- "$installer" --add \
- "${EROOT%/}"/etc/sgml/sgml-ent.cat \
- "${EROOT%/}"/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
- "$installer" --add \
- "${EROOT%/}"/etc/sgml/sgml-docbook.cat \
- "${EROOT%/}"/etc/sgml/sgml-ent.cat
-
- local file
- while IFS="" read -d $'\0' -r file; do
- einfo "Fixing ${file}"
- awk '/"$/ { print $1 " " $2 }
- ! /"$/ { print $1 " \"" $2 "\"" }' ${file} > ${file}.new || die "awk failed"
- mv ${file}.new ${file} || die "mv failed"
- done < <(find "${EROOT%/}/etc/sgml/" -name "*.cat" -o -name "catalog" -print0)
-}
-
-pkg_prerm() {
- cp "${EROOT%/}/usr/bin/install-catalog" "${T}" || die "cp failed"
-}
-
-pkg_postrm() {
- if [[ ! -x ${T}/install-catalog ]]; then
- return
- fi
-
- einfo "Removing Catalogs..."
- if [[ -e ${EROOT%/}/etc/sgml/sgml-ent.cat ]]; then
- "${T}"/install-catalog --remove \
- "${EROOT%/}"/etc/sgml/sgml-ent.cat \
- "${EROOT%/}"/usr/share/sgml/sgml-iso-entities-8879.1986/catalog \
- || die "install-catalog failed"
- fi
-
- if [[ -e ${EROOT%/}/etc/sgml/sgml-docbook.cat ]]; then
- "${T}"/install-catalog --remove \
- "${EROOT%/}"/etc/sgml/sgml-docbook.cat \
- "${EROOT%/}"/etc/sgml/sgml-ent.cat \
- || die "install-catalog failed"
- fi
-}