From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Aug 28 09:40:25 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E21E916A4C1 for ; Thu, 28 Aug 2003 09:40:24 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CC2843FE1 for ; Thu, 28 Aug 2003 09:40:22 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7SGeLUp068764 for ; Thu, 28 Aug 2003 09:40:21 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7SGeLFa068763; Thu, 28 Aug 2003 09:40:21 -0700 (PDT) Resent-Date: Thu, 28 Aug 2003 09:40:21 -0700 (PDT) Resent-Message-Id: <200308281640.h7SGeLFa068763@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Simon Barner Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC13C16A4BF for ; Thu, 28 Aug 2003 09:37:14 -0700 (PDT) Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE3EF43FF7 for ; Thu, 28 Aug 2003 09:37:13 -0700 (PDT) (envelope-from barner@in.tum.de) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id 54222381BB; Thu, 28 Aug 2003 18:37:12 +0200 (CEST) Message-Id: <20030828163712.54222381BB@zi025.glhnet.mhn.de> Date: Thu, 28 Aug 2003 18:37:12 +0200 (CEST) From: Simon Barner To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/56089: Unbreak port textproc/latte X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Simon Barner List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 16:40:25 -0000 >Number: 56089 >Category: ports >Synopsis: Unbreak port textproc/latte >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Aug 28 09:40:21 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Simon Barner >Release: FreeBSD 4.8-STABLE i386 >Organization: >Environment: System: FreeBSD zi025.glhnet.mhn.de 4.8-STABLE FreeBSD 4.8-STABLE #0: Thu Aug 7 04:04:01 CEST 2003 toor@zi025.glhnet.mhn.de:/usr/src/sys/compile/KISTE i386 >Description: The port is marked broken since it installs an emacs mode file into '/'. This patch fixes this misbehaviour (the file is only installed if emacs is installed in the system - the pkg-plist respects these two cases, too) >How-To-Repeat: >Fix: Apply the following patch to the port, and add the patch file files/patch-Makefile.in: --- Makefile.orig Thu Aug 28 18:32:42 2003 +++ Makefile Thu Aug 28 18:35:07 2003 @@ -2,7 +2,7 @@ # Date created: 15 August 1999 # Whom: Dominik Rothert # -# $FreeBSD: /repoman/r/pcvs/ports/textproc/latte/Makefile,v 1.10 2003/08/08 04:40:45 kris Exp $ +# $FreeBSD: ports/textproc/latte/Makefile,v 1.10 2003/08/08 04:40:45 kris Exp $ # PORTNAME= latte @@ -14,15 +14,21 @@ MAINTAINER= nc-rotherdo@netcologne.de COMMENT= Simple language for marking up text in a very expressive way -BROKEN= "Installs latte.el in /" - USE_LIBTOOL= yes MAKE_FLAGS= CONF_ARGS="--prefix=${PREFIX}" CONFIGURE_ARGS+= --enable-shared +.include + +.if exists (${LOCALBASE}/bin/emacs) +PLIST_SUB+= EMACS="" +.else +PLIST_SUB+= EMACS="@comment " +.endif + post-install: strip ${PREFIX}/bin/latte-html ${LN} -sf ${PREFIX}/bin/latte-html ${PREFIX}/bin/latte ${CP} -Rp ${WRKSRC}/tests ${PREFIX}/share/latte/ -.include +.include --- pkg-plist.orig Thu Aug 28 17:53:25 2003 +++ pkg-plist Thu Aug 28 17:57:33 2003 @@ -107,6 +107,7 @@ share/latte/tests/varref.latte share/latte/tests/while.exp share/latte/tests/while.latte +%%EMACS%%share/emacs/site-lisp/latte.el @dirrm include/latte @dirrm share/latte/tests @dirrm share/latte New patch files/patch-Makefile.in --- Makefile.in.orig Wed Nov 11 07:58:13 1998 +++ Makefile.in Thu Aug 28 17:12:59 2003 @@ -345,7 +345,8 @@ install-lispLISP: $(lisp_LISP) $(ELCFILES) @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(lispdir) + if test $(EMACS) != no; then \ + $(mkinstalldirs) $(DESTDIR)$(lispdir); \ @list='$(lisp_LISP)'; for p in $$list; do \ if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \ echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(lispdir)/$$p"; \ @@ -354,7 +355,7 @@ echo " $(INSTALL_DATA) $${p}c $(DESTDIR)$(lispdir)/$${p}c"; \ $(INSTALL_DATA) $${p}c $(DESTDIR)$(lispdir)/$${p}c; \ else : ; fi; \ - done + done; fi; uninstall-lispLISP: @$(NORMAL_UNINSTALL) >Release-Note: >Audit-Trail: >Unformatted: