summaryrefslogtreecommitdiff
path: root/ed
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@crux.nu>2006-11-12 11:13:42 +0100
committerTilman Sauerbeck <tilman@crux.nu>2006-11-12 11:13:42 +0100
commitb5ad99aa2e8db6bccf9ef3acd88f57ffa5756cff (patch)
tree4ef57b8b7066ca9f30c5cc0d081a9d139f2b8744 /ed
parent1b9874f223799e3d1b4e9b09195f2fcafbd14049 (diff)
downloadcore-b5ad99aa2e8db6bccf9ef3acd88f57ffa5756cff.tar.gz
core-b5ad99aa2e8db6bccf9ef3acd88f57ffa5756cff.tar.xz
ed: updated to 0.3
Diffstat (limited to 'ed')
-rw-r--r--ed/.md5sum3
-rw-r--r--ed/Pkgfile19
-rw-r--r--ed/ed-0.2.patch51
3 files changed, 13 insertions, 60 deletions
diff --git a/ed/.md5sum b/ed/.md5sum
index a7561a5c..9c20a3cb 100644
--- a/ed/.md5sum
+++ b/ed/.md5sum
@@ -1,2 +1 @@
-869cc429fd71bcb5ab0b316c36863020 ed-0.2.patch
-ddd57463774cae9b50e70cd51221281b ed-0.2.tar.gz
+56950c74e0239556296310a01c83ae7d ed-0.3.tar.bz2
diff --git a/ed/Pkgfile b/ed/Pkgfile
index 4e18dc3b..d9c566e6 100644
--- a/ed/Pkgfile
+++ b/ed/Pkgfile
@@ -3,16 +3,21 @@
# Maintainer: Per Lidén, core-ports at crux dot nu
name=ed
-version=0.2
-release=2
-source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz $name-$version.patch)
+version=0.3
+release=1
+source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
build() {
cd $name-$version
- patch -p1 < ../$name-$version.patch
- ./configure --prefix=/usr
+
+ # ed wants to use hard links for the binary and man pages,
+ # but pkgmk cannot compress hard linked man pages yet.
+ # as a temporary workaround, i'm making it use symlinks instead.
+ sed -i -e 's/ln /ln -s /' Makefile.in
+
+ ./configure --prefix=/usr --mandir=/usr/man
make
- make prefix=$PKG/usr install
+ make DESTDIR=$PKG install install-man
mv $PKG/usr/bin $PKG
- rm -rf $PKG/usr/info
+ rm -rf $PKG/usr/share
}
diff --git a/ed/ed-0.2.patch b/ed/ed-0.2.patch
deleted file mode 100644
index 1eb27e74..00000000
--- a/ed/ed-0.2.patch
+++ /dev/null
@@ -1,51 +0,0 @@
---- ed-0.2/buf.c.chmou Sat Nov 19 13:37:59 1994
-+++ ed-0.2/buf.c Mon Nov 27 11:46:54 2000
-@@ -194,21 +194,17 @@
-
- extern int newline_added;
-
--char sfn[15] = ""; /* scratch file name */
--
- /* open_sbuf: open scratch file */
- int
- open_sbuf ()
- {
-- char *mktemp ();
- int u;
-
- isbinary = newline_added = 0;
- u = umask(077);
-- strcpy (sfn, "/tmp/ed.XXXXXX");
-- if (mktemp (sfn) == NULL || (sfp = fopen (sfn, "w+")) == NULL)
-+ if ((sfp = tmpfile()) == NULL)
- {
-- fprintf (stderr, "%s: %s\n", sfn, strerror (errno));
-+ fprintf (stderr, "%s\n", strerror (errno));
- sprintf (errmsg, "Cannot open temp file");
- umask(u);
- return ERR;
-@@ -226,14 +222,14 @@
- {
- if (fclose (sfp) < 0)
- {
-- fprintf (stderr, "%s: %s\n", sfn, strerror (errno));
-+ fprintf (stderr, "Cannot close temp file: %s\n", strerror (errno));
- sprintf (errmsg, "Cannot close temp file");
- return ERR;
- }
- sfp = NULL;
-- unlink (sfn);
- }
- sfseek = seek_write = 0;
-+
- return 0;
- }
-
-@@ -246,7 +242,6 @@
- if (sfp)
- {
- fclose (sfp);
-- unlink (sfn);
- }
- exit (n);
- }

Generated by cgit