add from openbsd-wip git repo
ok pascal@ (Maintainer)
This commit is contained in:
parent
726c061b18
commit
032ce060a8
47
editors/traditional-vi/Makefile
Normal file
47
editors/traditional-vi/Makefile
Normal file
@ -0,0 +1,47 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/10/13 22:23:54 rpe Exp $
|
||||
|
||||
COMMENT = traditional vi and ex
|
||||
|
||||
DISTNAME = ex-050325
|
||||
PKGNAME = traditional-vi-20050325
|
||||
|
||||
CATEGORIES = editors
|
||||
|
||||
HOMEPAGE = http://ex-vi.sourceforge.net/
|
||||
|
||||
MAINTAINER = Pascal Stumpf <Pascal.Stumpf@cubes.de>
|
||||
|
||||
# BSD-style, libuxre is LGPLv2.1
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
WANTLIB = c ncurses
|
||||
|
||||
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=ex-vi/}
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
|
||||
USE_GROFF = Yes
|
||||
|
||||
MAKE_FLAGS = PREFIX="${PREFIX}"
|
||||
|
||||
NO_REGRESS = Yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/ex ${PREFIX}/bin/traditional-ex
|
||||
.for _l in edit vedit vi view
|
||||
cd ${PREFIX}/bin && ln traditional-ex ${PREFIX}/bin/traditional-${_l}
|
||||
.endfor
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/exrecover ${PREFIX}/libexec
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/expreserve ${PREFIX}/libexec
|
||||
${INSTALL_MAN} ${WRKSRC}/vi.1 ${PREFIX}/man/man1/traditional-vi.1
|
||||
${INSTALL_MAN} ${WRKSRC}/ex.1 ${PREFIX}/man/man1/traditional-ex.1
|
||||
cd ${PREFIX}/man/man1 && ln traditional-ex.1 \
|
||||
${PREFIX}/man/man1/traditional-edit.1
|
||||
cd ${PREFIX}/man/man1 && ln traditional-vi.1 \
|
||||
${PREFIX}/man/man1/traditional-vedit.1
|
||||
cd ${PREFIX}/man/man1 && ln traditional-vi.1 \
|
||||
${PREFIX}/man/man1/traditional-view.1
|
||||
|
||||
.include <bsd.port.mk>
|
5
editors/traditional-vi/distinfo
Normal file
5
editors/traditional-vi/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (ex-050325.tar.bz2) = 5mhZUlQjPk2WgRCDo+Ti8w==
|
||||
RMD160 (ex-050325.tar.bz2) = QePu4DK0J401Ll7sNscdghdI5Ro=
|
||||
SHA1 (ex-050325.tar.bz2) = VzUB0V+kvlnxNmQZV8f4k+hrrII=
|
||||
SHA256 (ex-050325.tar.bz2) = 2kvnz2fpRXJGOxnlaFCqNtxOOesNkz02iP6FdLtjJAk=
|
||||
SIZE (ex-050325.tar.bz2) = 215411
|
34
editors/traditional-vi/patches/patch-Makefile
Normal file
34
editors/traditional-vi/patches/patch-Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2012/10/13 22:23:54 rpe Exp $
|
||||
--- Makefile.orig Fri Mar 25 00:50:09 2005
|
||||
+++ Makefile Fri Sep 30 15:47:03 2011
|
||||
@@ -79,11 +79,11 @@
|
||||
# Destinations for installation. $(PRESERVEDIR) is used for recovery files.
|
||||
# It will get mode 1777.
|
||||
#
|
||||
-PREFIX = /usr/local
|
||||
+PREFIX ?= /usr/local
|
||||
BINDIR = $(PREFIX)/bin
|
||||
LIBEXECDIR = $(PREFIX)/libexec
|
||||
-MANDIR = $(PREFIX)/share/man
|
||||
-PRESERVEDIR = /var/preserve
|
||||
+MANDIR = $(PREFIX)/man
|
||||
+PRESERVEDIR = /tmp
|
||||
|
||||
#
|
||||
# DESTDIR is prepended to the installation paths. It is mostly useful
|
||||
@@ -205,13 +205,13 @@ OSTYPE = -DVMUNIX
|
||||
#
|
||||
# You may also get terminfo access by using the ncurses library.
|
||||
#
|
||||
-#TERMLIB = ncurses
|
||||
+TERMLIB = ncurses
|
||||
#
|
||||
# The preferred choice for ex on Linux distributions, other systems that
|
||||
# provide a good termcap file, or when setting the TERMCAP environment
|
||||
# variable is deemed sufficient, is the included 2.11BSD termcap library.
|
||||
#
|
||||
-TERMLIB = termlib
|
||||
+#TERMLIB = termlib
|
||||
|
||||
#
|
||||
# Since ex uses sbrk() internally, a conflict with the libc's version of
|
11
editors/traditional-vi/patches/patch-config_h
Normal file
11
editors/traditional-vi/patches/patch-config_h
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-config_h,v 1.1.1.1 2012/10/13 22:23:54 rpe Exp $
|
||||
--- config.h.orig Fri Sep 30 14:22:45 2011
|
||||
+++ config.h Fri Sep 30 14:23:03 2011
|
||||
@@ -133,6 +133,7 @@
|
||||
*
|
||||
* The argument to the sbrk() system call has this type.
|
||||
*/
|
||||
+#include <stdint.h>
|
||||
#ifdef notdef
|
||||
typedef int intptr_t;
|
||||
#endif
|
13
editors/traditional-vi/pkg/DESCR
Normal file
13
editors/traditional-vi/pkg/DESCR
Normal file
@ -0,0 +1,13 @@
|
||||
The vi editor is one of the most common text editors on Unix. It
|
||||
was developed starting around 1976 by Bill Joy at UCB, who was tired
|
||||
of the ed editor. But since he used ed as a code base, access to
|
||||
the original sources has required a commercial Unix Source Code
|
||||
License for more than twenty years. In January 2002, Caldera was
|
||||
so kind to remove usage restrictions to the Ancient Unix Code by a
|
||||
BSD-style license and thus vi is now finally free.
|
||||
|
||||
This port of vi has generally preserved the original style, terminal
|
||||
control, and feature set. It adds support for international character
|
||||
sets, including multibyte encodings such as UTF-8, and some minor
|
||||
enhancements that were not present in BSD vi 3.7, but had been
|
||||
included in later vi versions for System V or in POSIX.2.
|
13
editors/traditional-vi/pkg/PLIST
Normal file
13
editors/traditional-vi/pkg/PLIST
Normal file
@ -0,0 +1,13 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/10/13 22:23:54 rpe Exp $
|
||||
@bin bin/traditional-edit
|
||||
@bin bin/traditional-ex
|
||||
@bin bin/traditional-vedit
|
||||
@bin bin/traditional-vi
|
||||
@bin bin/traditional-view
|
||||
@bin libexec/expreserve
|
||||
@bin libexec/exrecover
|
||||
@man man/man1/traditional-edit.1
|
||||
@man man/man1/traditional-ex.1
|
||||
@man man/man1/traditional-vedit.1
|
||||
@man man/man1/traditional-vi.1
|
||||
@man man/man1/traditional-view.1
|
Loading…
Reference in New Issue
Block a user