sgml-catalog-r1.eclass: Do not generate self-dep in sgml-common
authorMichał Górny <mgorny@gentoo.org>
Sun, 24 Nov 2019 11:25:05 +0000 (12:25 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 24 Nov 2019 12:26:08 +0000 (13:26 +0100)
Closes: https://bugs.gentoo.org/700976
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/sgml-catalog-r1.eclass

index f466f97fdcce5754473b22ede59082f8b1017473..1e1f17815ac4dded9e289b15384b77f6643f5bc5 100644 (file)
@@ -22,7 +22,9 @@ EXPORT_FUNCTIONS pkg_postinst pkg_postrm
 
 if [[ ! ${_SGML_CATALOG_R1} ]]; then
 
-RDEPEND=">=app-text/sgml-common-0.6.3-r7"
+if [[ ${CATEGORY}/${PN} != app-text/sgml-common ]]; then
+       RDEPEND=">=app-text/sgml-common-0.6.3-r7"
+fi
 
 # @FUNCTION: sgml-catalog-r1_update_catalog
 # @DESCRIPTION: