Skip site navigation (1)Skip section navigation (2)
Date:      Sat,  6 Nov 1999 09:06:54 -0800 (PST)
From:      lioux@gns.com.br
To:        freebsd-gnats-submit@freebsd.org
Subject:   ports/14748: Updated port for devel/ctags version 3.3.2
Message-ID:  <19991106170654.2054114E78@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         14748
>Category:       ports
>Synopsis:       Updated port for devel/ctags version 3.3.2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov  6 09:10:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Mario Sergio Fujikawa Ferreira
>Release:        FreeBSD 3.3-STABLE
>Organization:
>Environment:
FreeBSD Local.here 3.3-STABLE FreeBSD 3.3-STABLE #11: Tue Nov  2 15:54:09 GMT 1999     lioux@Local:/usr/src/sys/compile/LIOUX  i386
>Description:
I updated the ctags port to version 3.3.2 and I am trying to address an interesting issue.
The Exuberant Ctags port (namely ctags) installs 1 binary at /usr/local/bin/ctags
and one link /usr/local/bin/etags to /usr/local/bin/ctags.
FreeBSD already has a well known program installing these 2 targets: emacs.
Furthermore, FreeBSD already ships with /usr/bin/ctags.
That's a complete mess.
I both changed the install targets to /usr/local/bin/exctags following the program name (Exuberant Ctags)
and updated the man page to reflect the change. The man page is now /usr/local/man/man1/exctags.1 and
it does mention that exctags is a replacement to ctags and etags.
If you want ctags try exctags
If you want etags try exctags -e
This port is somewhat important because I am updating the broken devel/codecrusader
port and I will need the ctags port.
>How-To-Repeat:
Well, install devel/ctags and hope your PATH is okay.
Do you want a worse case? Install editors/emacs20 and then devel/ctags.
>Fix:
diff -ru ctags.OLD/Makefile ctags/Makefile
--- ctags.OLD/Makefile  Tue Aug 31 06:41:37 1999
+++ ctags/Makefile      Sat Nov  6 13:18:39 1999
@@ -6,7 +6,7 @@
 # $FreeBSD: ports/devel/ctags/Makefile,v 1.5 1999/08/31 06:41:37 mharo Exp $
 #

-DISTNAME=      ctags-3.2.2
+DISTNAME=      ctags-3.3.2
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_SUNSITE}\
                http://fly.hiwaay.net/~darren/archives/ \
@@ -15,9 +15,55 @@
 MAINTAINER=    jkoshy@FreeBSD.org

 GNU_CONFIGURE= yes
-CONFIGURE_ARGS=        --enable-macro-patterns

-MAN1=          ctags.1
-MLINKS=                ctags.1 etags.1
+# By default, line numbers are used in the tag
+# file for #define objects, in order to remain
+# compatible with the original UNIX ctags. This
+# option will make the default use patterns.
+CONFIGURE_ARGS+= --enable-macro-patterns
+# By default, "make install" will install one
+# binary, "ctags", one man page, "ctags.1", and
+# create links to these two files by the names
+# "etags" and "etags.1". If you do not want to
+# install the "etags" links, use this option.
+# We don't want, check do-install.
+CONFIGURE_ARGS+= --disable-etags
+
+
+# Additional configure options:
+#
+# Creates a special GNU-specific version of the
+# makefile which is used to maintain Exuberant
+# Ctags.
+#CONFIGURE_ARGS+= --enable-maintainer-mode
+#
+# Defines a custom option configuration file to
+# establish site-wide defaults. Ctags will read
+# the following files at startup for options:
+# /etc/ctags.conf, /usr/local/etc/ctags.conf,
+# $HOME/.ctags, and .ctags. If you need a
+# different file, set this option to the full
+# path name of the file you want to be read, and
+# it will be read immediately before reading
+# $HOME/.ctags.
+#CONFIGURE_ARGS+= --enable-custom-config
+
+#
+# Houston, we've got a problem, the program name is ctags
+# and will be installed in ${PREFIX}/bin (probably,
+# /usr/local/bin/ctags). Emacs installs ctags and etags
+# on the same target directory. However, we already
+# have a ctags on /usr/bin/ctags.
+# Can you spell confusion fast enough?
+# We could use exctags instead of ctags based on the package
+# name: Exuberant Ctags
+# We will do that.
+#
+
+MAN1=          exctags.1
+
+do-install:
+       @ ${INSTALL_PROGRAM} ${WRKSRC}/ctags ${PREFIX}/bin/exctags
+       @ ${INSTALL_MAN} ${WRKSRC}/ctags.1 ${PREFIX}/man/man1/exctags.1

 .include <bsd.port.mk>
diff -ru ctags.OLD/files/md5 ctags/files/md5
--- ctags.OLD/files/md5 Fri Jun  4 07:16:48 1999
+++ ctags/files/md5     Sat Nov  6 11:15:42 1999
@@ -1 +1 @@
-MD5 (ctags-3.2.2.tar.gz) = e60d6bfa04298d48989ba6de8f8968c5
+MD5 (ctags-3.3.2.tar.gz) = 1a3512af85fa9cf0130a12ff4107aaaa
diff -ru ctags.OLD/pkg/PLIST ctags/pkg/PLIST
--- ctags.OLD/pkg/PLIST Fri Jun  4 07:16:51 1999
+++ ctags/pkg/PLIST     Sat Nov  6 12:22:06 1999
@@ -1,2 +1 @@
-bin/ctags
-bin/etags
+bin/exctags


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991106170654.2054114E78>