Symptom:

  $ cd /usr/ports
  $ make search name=jeoip | grep '^Archs:'
  Archs:  jre->=1.5.0:devel/jdk/1.5
  $ make print-licenses | egrep -v '^.{40}([yn]  ){4}'

Fix:

Index: ports/infrastructure/mk/bsd.port.mk
===================================================================
RCS file: /cvs/ports/infrastructure/mk/bsd.port.mk,v
retrieving revision 1.915
diff -u -r1.915 bsd.port.mk
--- ports/infrastructure/mk/bsd.port.mk 21 Sep 2007 08:04:06 -0000      1.915
+++ ports/infrastructure/mk/bsd.port.mk 23 Sep 2007 23:09:47 -0000
@@ -2440,7 +2440,7 @@
        fi; \
        echo -n "${MAINTAINER}|${CATEGORIES${_S}}|"
 .  for _d in LIB BUILD RUN
-       @echo -n '${_${_d}_DEP3${_S}:C/ +/ /g}'| tr '\040' '\012'|sort -u|tr 
'\012' '\040' | sed -e 's, $$,,'
+       @echo -n '${_${_d}_DEP3${_S}:C/ +/ /g}'| tr '\040' '\012'|sort -u|tr 
'\012' '\040' | sed -e 's, $$,,' | sed 's/|/(or)/g'
        @echo -n '|'
 .  endfor
        @case "${ONLY_FOR_ARCHS}" in \
Index: ports/Makefile
===================================================================
RCS file: /cvs/ports/Makefile,v
retrieving revision 1.56
diff -u -r1.56 Makefile
--- ports/Makefile      23 Sep 2007 18:14:51 -0000      1.56
+++ ports/Makefile      23 Sep 2007 23:09:58 -0000
@@ -83,6 +83,7 @@
        @echo "Generating INDEX..."
        @${MAKE} describe MACHINE_ARCH=i386 ECHO_MSG="echo 1>&2" > 
${.CURDIR}/INDEX
        @echo "Done."
+       @perl -ne 'print "INDEX bad: $$_" if y/|/|/ != 14' < ${.CURDIR}/INDEX
 
 print-index:   ${.CURDIR}/INDEX
        @awk -F\| '{ 
printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nL-deps:\t%s\nB-deps:\t%s\nR-deps:\t%s\n\n",
 $$1, $$2, $$4, $$6, $$7, $$8, $$9, $$10); }' < ${.CURDIR}/INDEX

Reply via email to