afaik this is not useful any more.  We have shared libs everywhere, and
.mo files don't need a direct dep on gettext to be usable.

ok?


Index: portcheck
===================================================================
RCS file: /d/cvs/ports/infrastructure/bin/portcheck,v
retrieving revision 1.113
diff -u -p -p -u -r1.113 portcheck
--- portcheck   14 Jul 2017 07:42:51 -0000      1.113
+++ portcheck   28 Nov 2017 13:37:21 -0000
@@ -928,9 +928,6 @@ sub_checks() {
 #     with %D/bin/glib-compile-schemas %D/share/glib-2.0/schemas >/dev/null
 #     and "devel/dconf" in MODULES (or at least RDEP on devel/dconf).
 #
-#   * If package installs .mo files under ${PREFIX}/share/locale/, then
-#     run-time dependency on devel/gettext should exists.
-#
 #   * If package installs files under ${PREFIX}/share/dbus-1/system-services/,
 #     it must have a run-time dependency on x11/dbus,-suid.
 #
@@ -996,9 +993,6 @@ check_plist() {
        # List of icon themes that remove cache file
        local rm_cache_themes=
 
-       local gettext_dep=false
-       local translation_found=false
-
        local dbus_suid_dep=false
        local dbus_suid_dep_needed=false
 
@@ -1149,13 +1143,6 @@ check_plist() {
                            "invocation: ${l#@* }"
                        ;;
 
-               "@depend devel/gettext"*)
-                       gettext_dep=true
-                       ;;
-               share/locale/*/*/*.mo)
-                       translation_found=true
-                       ;;
-
                "@depend x11/qt4,-main"*)
                        qt4_dep=true
                        ;;
@@ -1353,12 +1340,6 @@ check_plist() {
                err "${portref}missing @unexec-delete of glib-compile-schemas"
        fi
 
-       # gettext
-       $translation_found && ! $gettext_dep && ! $is_static &&
-               [[ $fullpkgname != gettext-* ]] &&
-               err "${portref}translation file(s) found without" \
-                   "devel/gettext dependency in RUN_DEPENDS"
-
        # QML
        $qml_found && ! $qt4_dep && ! $qt5_dep &&
                [[ $fullpkgname != qt4-[0-9]* ]] &&
@@ -1447,7 +1428,6 @@ check_plist() {
 }
 
 # Checks made:
-#   * devel/gettext dependency is not forgotten.
 #   * lib/kde/ and lib/kde4/ prefixes not missing where applicable.
 #   * stdc++ doesn't get into WANTLIB when gcc4.port.mk is used.
 check_wantlib() {

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to