diff options
author | ryoon <ryoon@pkgsrc.org> | 2012-04-11 17:45:39 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2012-04-11 17:45:39 +0000 |
commit | 4b490a378c4f4932f5fd0b783484aeea6afab05a (patch) | |
tree | ea7c081001208cc7cd9e43199786acbccfa1216d /converters | |
parent | 6497dabb651381a7e7b215000ccf756240244da0 (diff) | |
download | pkgsrc-4b490a378c4f4932f5fd0b783484aeea6afab05a.tar.gz |
Import dos2unix-5.3.3 as converters/dos2unix.
dos2unix includes utilities to convert text files with DOS or MAC
line endings to Unix line endings and vice versa. It is an update
of Benjamin Lin's implementations.
Diffstat (limited to 'converters')
-rw-r--r-- | converters/dos2unix/DESCR | 3 | ||||
-rw-r--r-- | converters/dos2unix/Makefile | 23 | ||||
-rw-r--r-- | converters/dos2unix/PLIST | 29 | ||||
-rw-r--r-- | converters/dos2unix/distinfo | 6 | ||||
-rw-r--r-- | converters/dos2unix/patches/patch-Makefile | 33 |
5 files changed, 94 insertions, 0 deletions
diff --git a/converters/dos2unix/DESCR b/converters/dos2unix/DESCR new file mode 100644 index 00000000000..42ebb77d0be --- /dev/null +++ b/converters/dos2unix/DESCR @@ -0,0 +1,3 @@ +dos2unix includes utilities to convert text files with DOS or MAC +line endings to Unix line endings and vice versa. It is an update +of Benjamin Lin's implementations. diff --git a/converters/dos2unix/Makefile b/converters/dos2unix/Makefile new file mode 100644 index 00000000000..2b1765c3b71 --- /dev/null +++ b/converters/dos2unix/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1.1.1 2012/04/11 17:45:39 ryoon Exp $ +# + +DISTNAME= dos2unix-5.3.3 +CATEGORIES= converters +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dos2unix/} + +MAINTAINER= ryoon@NetBSD.org +HOMEPAGE= http://waterlan.home.xs4all.nl/dos2unix.html +COMMENT= Convert text files with DOS or Mac line endings to Unix line endings +LICENSE= 2-clause-bsd + +PKG_DESTDIR_SUPPORT= user-destdir + +CONFLICTS= unix2dos-[0-9]* + +USE_TOOLS+= gmake msgfmt xgettext perl + +BUILD_MAKE_FLAGS+= LDFLAGS_EXTRA+=-lintl +INSTALL_MAKE_FLAGS+= prefix=${PREFIX} + +.include "../../devel/gettext-lib/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/converters/dos2unix/PLIST b/converters/dos2unix/PLIST new file mode 100644 index 00000000000..fe2c372fc68 --- /dev/null +++ b/converters/dos2unix/PLIST @@ -0,0 +1,29 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2012/04/11 17:45:39 ryoon Exp $ +bin/dos2unix +bin/mac2unix +bin/unix2dos +bin/unix2mac +man/es/man1/dos2unix.1 +man/es/man1/mac2unix.1 +man/es/man1/unix2dos.1 +man/es/man1/unix2mac.1 +man/man1/dos2unix.1 +man/man1/mac2unix.1 +man/man1/unix2dos.1 +man/man1/unix2mac.1 +man/nl/man1/dos2unix.1 +man/nl/man1/mac2unix.1 +man/nl/man1/unix2dos.1 +man/nl/man1/unix2mac.1 +share/doc/${PKGNAME}/BUGS.txt +share/doc/${PKGNAME}/COPYING.txt +share/doc/${PKGNAME}/ChangeLog.txt +share/doc/${PKGNAME}/NEWS.txt +share/doc/${PKGNAME}/README.txt +share/doc/${PKGNAME}/TODO.txt +share/doc/${PKGNAME}/dos2unix.htm +share/doc/${PKGNAME}/dos2unix.txt +share/locale/de/LC_MESSAGES/dos2unix.mo +share/locale/eo/LC_MESSAGES/dos2unix.mo +share/locale/es/LC_MESSAGES/dos2unix.mo +share/locale/nl/LC_MESSAGES/dos2unix.mo diff --git a/converters/dos2unix/distinfo b/converters/dos2unix/distinfo new file mode 100644 index 00000000000..610f4694f49 --- /dev/null +++ b/converters/dos2unix/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2012/04/11 17:45:39 ryoon Exp $ + +SHA1 (dos2unix-5.3.3.tar.gz) = 4a23f2b4e5d68a71119ae453b9045b7b7efd6f4a +RMD160 (dos2unix-5.3.3.tar.gz) = cd2ebfcc94f19387f70da07ede3adb0e3e256ed5 +Size (dos2unix-5.3.3.tar.gz) = 58085 bytes +SHA1 (patch-Makefile) = cf13e5b8dbe9d0b5d1a1ce024697d0970806df1e diff --git a/converters/dos2unix/patches/patch-Makefile b/converters/dos2unix/patches/patch-Makefile new file mode 100644 index 00000000000..620ae121a52 --- /dev/null +++ b/converters/dos2unix/patches/patch-Makefile @@ -0,0 +1,33 @@ +$NetBSD: patch-Makefile,v 1.1.1.1 2012/04/11 17:45:39 ryoon Exp $ + +* install man pages to ${PREFIX}/man +* do not generate ps, pdf, and html documents + +--- Makefile.orig 2012-03-10 08:04:59.000000000 +0000 ++++ Makefile +@@ -70,7 +70,7 @@ datadir = $(datarootdir) + docsubdir = $(PACKAGE)-$(DOS2UNIX_VERSION) + docdir = $(datarootdir)/doc/$(docsubdir) + localedir = $(datarootdir)/locale +-mandir = $(datarootdir)/man ++mandir = $(prefix)/${PKGMANDIR} + man1dir = $(mandir)/man1 + manext = .1 + man1ext = .1 +@@ -321,11 +321,11 @@ else + cd $(DESTDIR)$(man1dir); $(LINK_MAN) $(PACKAGE).1 $(UNIX2DOS).1 + cd $(DESTDIR)$(man1dir); $(LINK_MAN) $(PACKAGE).1 $(UNIX2MAC).1 + endif +- $(foreach manfile, $(MANFILES), $(MKDIR) -p -m 755 $(DESTDIR)$(datarootdir)/$(dir $(manfile)) ;) +- $(foreach manfile, $(MANFILES), $(INSTALL) -m 644 $(manfile) $(DESTDIR)$(datarootdir)/$(dir $(manfile)) ;) +- $(foreach manfile, $(MANFILES), cd $(DESTDIR)$(datarootdir)/$(dir $(manfile)) ; $(LINK_MAN) $(PACKAGE).1 $(MAC2UNIX).1 ;) +- $(foreach manfile, $(MANFILES), cd $(DESTDIR)$(datarootdir)/$(dir $(manfile)) ; $(LINK_MAN) $(PACKAGE).1 $(UNIX2DOS).1 ;) +- $(foreach manfile, $(MANFILES), cd $(DESTDIR)$(datarootdir)/$(dir $(manfile)) ; $(LINK_MAN) $(PACKAGE).1 $(UNIX2MAC).1 ;) ++ $(foreach manfile, $(MANFILES), $(MKDIR) -p -m 755 $(DESTDIR)$(prefix)/$(dir $(manfile)) ;) ++ $(foreach manfile, $(MANFILES), $(INSTALL) -m 644 $(manfile) $(DESTDIR)$(prefix)/$(dir $(manfile)) ;) ++ $(foreach manfile, $(MANFILES), cd $(DESTDIR)$(prefix)/$(dir $(manfile)) ; $(LINK_MAN) $(PACKAGE).1 $(MAC2UNIX).1 ;) ++ $(foreach manfile, $(MANFILES), cd $(DESTDIR)$(prefix)/$(dir $(manfile)) ; $(LINK_MAN) $(PACKAGE).1 $(UNIX2DOS).1 ;) ++ $(foreach manfile, $(MANFILES), cd $(DESTDIR)$(prefix)/$(dir $(manfile)) ; $(LINK_MAN) $(PACKAGE).1 $(UNIX2MAC).1 ;) + ifdef ENABLE_NLS + @echo "-- install-mo" + $(foreach mofile, $(MOFILES), $(MKDIR) -p -m 755 $(DESTDIR)$(localedir)/$(basename $(notdir $(mofile)))/LC_MESSAGES ;) |