mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- Fix build
- Utilize DATADIR/DOCSDIR PR: 59012 Submitted by: Ports Fury
This commit is contained in:
parent
486ce86b4e
commit
d4754d3fd3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=93484
@ -7,51 +7,38 @@
|
||||
|
||||
PORTNAME= unroff
|
||||
PORTVERSION= 1.0.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= ${UNROFF_SITE}/dist/ \
|
||||
${UNROFF_SITE}/contrib/
|
||||
DISTNAME= ${PORTNAME}-1.0
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PATCH1} ${PATCH2}
|
||||
MASTER_SITES= http://www-rn.informatik.uni-bremen.de/software/unroff/%SUBDIR%/
|
||||
MASTER_SITE_SUBDIR= dist
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION:R}
|
||||
DIST_SUBDIR= unroff
|
||||
|
||||
MAINTAINER= ports@freebsd.org
|
||||
PATCH_SITES= ${MASTER_SITES}
|
||||
PATCH_SITE_SUBDIR= contrib
|
||||
PATCHFILES= me-misc-patch.gz misc-patch-2.gz
|
||||
PATCH_DIST_STRIP= -p1
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= A programmable troff translator with backend for HTML
|
||||
|
||||
RUN_DEPENDS= elk:${PORTSDIR}/lang/elk
|
||||
BUILD_DEPENDS= elk:${PORTSDIR}/lang/elk
|
||||
|
||||
BROKEN= "Does not build; will be removed after Feb 2"
|
||||
|
||||
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
||||
DIST_SUBDIR= unroff
|
||||
PATCH_STRIP= -p1
|
||||
|
||||
UNROFF_SITE= http://www-rn.informatik.uni-bremen.de/software/unroff
|
||||
PATCH1= me-misc-patch
|
||||
PATCH2= misc-patch-2
|
||||
LIB_DEPENDS= elk.0:${PORTSDIR}/lang/elk
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/src
|
||||
|
||||
MAN1= unroff.1 unroff-html.1 unroff-html-man.1 \
|
||||
unroff-html-me.1 unroff-html-ms.1
|
||||
|
||||
pre-patch:
|
||||
@${ECHO_MSG} "===> Applying distribution patches for ${PKGNAME}"
|
||||
@(cd ${_DISTDIR}; \
|
||||
if [ ${PATCH_DEBUG_TMP} = yes ]; then \
|
||||
${ECHO_MSG} "===> Applying distribution patch ${PATCH1}" ; \
|
||||
fi; \
|
||||
${PATCH} ${PATCH_DIST_ARGS} -p0 < ${PATCH1}; \
|
||||
if [ ${PATCH_DEBUG_TMP} = yes ]; then \
|
||||
${ECHO_MSG} "===> Applying distribution patch ${PATCH2}" ; \
|
||||
fi; \
|
||||
${PATCH} ${PATCH_DIST_ARGS} -p1 < ${PATCH2})
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${DATADIR}/misc
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/unroff ${PREFIX}/bin/unroff
|
||||
${CP} -R ${WRKSRC}/scm ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/tmac.hyper ${WRKSRC}/misc/sample.unroff ${DATADIR}/misc
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/unroff ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${PREFIX}/man/man1
|
||||
@${MKDIR} ${DATADIR}/misc
|
||||
.for i in doc/tmac.hyper misc/sample.unroff
|
||||
${INSTALL_DATA} ${WRKSRC}/${i} ${DATADIR}/misc
|
||||
.endfor
|
||||
${TAR} -C ${WRKSRC} -cf - scm | \
|
||||
${TAR} -C ${DATADIR} --unlink -xf -
|
||||
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/manual.ms ${DOCSDIR}
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (unroff/unroff-1.0.tar.gz) = 918e9c065cb7486c4b885da7809f37e7
|
||||
MD5 (unroff/me-misc-patch) = e0cfe9a5012f573cf774115562f4462e
|
||||
MD5 (unroff/misc-patch-2) = ebedbf1a8dccfeb5ef3f996ba15374b2
|
||||
MD5 (unroff/me-misc-patch.gz) = a6af8590955e5a54e399cf0ab01fc9c4
|
||||
MD5 (unroff/misc-patch-2.gz) = b941bcec35911cbe117a392e07bba4df
|
||||
|
@ -1,68 +1,43 @@
|
||||
diff -cr unroff-1.0.orig/src/Makefile unroff-1.0/src/Makefile
|
||||
*** unroff-1.0.orig/src/Makefile Wed Aug 23 14:12:48 1995
|
||||
--- unroff-1.0/src/Makefile Mon Feb 12 18:51:08 1996
|
||||
***************
|
||||
*** 1,14 ****
|
||||
# $Revision: 1.12 $
|
||||
|
||||
### You need a C compiler that compiles ANSI C code.
|
||||
! CC = gcc
|
||||
! CFLAGS = -Wall -pedantic -O
|
||||
|
||||
### If you need additional linker flags add them here.
|
||||
! LDFLAGS =
|
||||
|
||||
### The directory where the Elk installation resides on your system.
|
||||
! ELKDIR = /usr/elk
|
||||
|
||||
### Additional libraries. You may want to insert the output of the
|
||||
### shell-script $(ELKDIR)/lib/ldflags here.
|
||||
--- 1,14 ----
|
||||
# $Revision: 1.12 $
|
||||
|
||||
### You need a C compiler that compiles ANSI C code.
|
||||
! #CC = gcc
|
||||
! CFLAGS += -DBSD
|
||||
|
||||
### If you need additional linker flags add them here.
|
||||
! LDFLAGS = -s
|
||||
|
||||
### The directory where the Elk installation resides on your system.
|
||||
! ELKDIR = ${PREFIX}/share/elk
|
||||
|
||||
### Additional libraries. You may want to insert the output of the
|
||||
### shell-script $(ELKDIR)/lib/ldflags here.
|
||||
***************
|
||||
*** 18,24 ****
|
||||
MAKEDEP = makedepend
|
||||
|
||||
### The directory under which you will install the Scheme files.
|
||||
! DIR = /usr/local/lib/unroff
|
||||
|
||||
### The default output format.
|
||||
FORMAT = html
|
||||
--- 18,24 ----
|
||||
MAKEDEP = makedepend
|
||||
|
||||
### The directory under which you will install the Scheme files.
|
||||
! DIR = ${PREFIX}/share/unroff
|
||||
|
||||
### The default output format.
|
||||
FORMAT = html
|
||||
***************
|
||||
*** 30,36 ****
|
||||
### -------------------------------------------------------------------------
|
||||
|
||||
SHELL = /bin/sh
|
||||
! INCLUDE = -I$(ELKDIR)/include
|
||||
ELK = $(ELKDIR)/lib/module.o
|
||||
DEFS = -DDEFAULT_DIR=\"$(DIR)\" -DDEFAULT_FORMAT=\"$(FORMAT)\"
|
||||
CTAGS = ctags -t -w
|
||||
--- 30,36 ----
|
||||
### -------------------------------------------------------------------------
|
||||
|
||||
SHELL = /bin/sh
|
||||
! INCLUDE = -I${PREFIX}/include/elk
|
||||
ELK = $(ELKDIR)/lib/module.o
|
||||
DEFS = -DDEFAULT_DIR=\"$(DIR)\" -DDEFAULT_FORMAT=\"$(FORMAT)\"
|
||||
CTAGS = ctags -t -w
|
||||
--- src/Makefile.orig Wed Aug 23 21:12:48 1995
|
||||
+++ src/Makefile Thu Nov 6 22:21:29 2003
|
||||
@@ -1,24 +1,24 @@
|
||||
# $Revision: 1.12 $
|
||||
|
||||
### You need a C compiler that compiles ANSI C code.
|
||||
-CC = gcc
|
||||
-CFLAGS = -Wall -pedantic -O
|
||||
+#CC = gcc
|
||||
+CFLAGS += -DBSD
|
||||
|
||||
### If you need additional linker flags add them here.
|
||||
LDFLAGS =
|
||||
|
||||
### The directory where the Elk installation resides on your system.
|
||||
-ELKDIR = /usr/elk
|
||||
+ELKDIR = ${PREFIX}/share/elk
|
||||
|
||||
### Additional libraries. You may want to insert the output of the
|
||||
### shell-script $(ELKDIR)/lib/ldflags here.
|
||||
-LIBS = -lm
|
||||
+LIBS = -lm -lelk -L${LOCALBASE}/lib
|
||||
|
||||
### The makedepend program (it's usually installed with the X11 binaries).
|
||||
MAKEDEP = makedepend
|
||||
|
||||
### The directory under which you will install the Scheme files.
|
||||
-DIR = /usr/local/lib/unroff
|
||||
+DIR = ${PREFIX}/share/unroff
|
||||
|
||||
### The default output format.
|
||||
FORMAT = html
|
||||
@@ -30,8 +30,8 @@
|
||||
### -------------------------------------------------------------------------
|
||||
|
||||
SHELL = /bin/sh
|
||||
-INCLUDE = -I$(ELKDIR)/include
|
||||
-ELK = $(ELKDIR)/lib/module.o
|
||||
+INCLUDE = -I${LOCALBASE}/include/elk
|
||||
+#ELK = $(ELKDIR)/lib/module.o
|
||||
DEFS = -DDEFAULT_DIR=\"$(DIR)\" -DDEFAULT_FORMAT=\"$(FORMAT)\"
|
||||
CTAGS = ctags -t -w
|
||||
|
||||
|
14
textproc/unroff/files/patch-c
Normal file
14
textproc/unroff/files/patch-c
Normal file
@ -0,0 +1,14 @@
|
||||
--- src/error.h.orig Fri Jun 2 22:16:01 1995
|
||||
+++ src/error.h Thu Nov 6 22:13:38 2003
|
||||
@@ -12,9 +12,11 @@
|
||||
void write_error(char *) NORETURN;
|
||||
void open_error(char *) NORETURN;
|
||||
|
||||
+#if 0
|
||||
/* Redefined to add NORETURN
|
||||
*/
|
||||
extern Primitive_Error() NORETURN;
|
||||
+#endif
|
||||
|
||||
char *printable_string(char *, int);
|
||||
char *printable_char(char);
|
@ -1,22 +1,23 @@
|
||||
@comment $FreeBSD$
|
||||
bin/unroff
|
||||
share/unroff/misc/sample.unroff
|
||||
share/unroff/misc/tmac.hyper
|
||||
share/unroff/scm/troff.scm
|
||||
share/unroff/scm/troff.scm.orig
|
||||
share/unroff/scm/html/common.scm
|
||||
share/unroff/scm/html/common.scm.orig
|
||||
share/unroff/scm/html/m.scm
|
||||
share/unroff/scm/html/man.scm
|
||||
share/unroff/scm/html/me.scm
|
||||
share/unroff/scm/html/me.scm.orig
|
||||
share/unroff/scm/html/ms.scm
|
||||
share/unroff/scm/html/ms.scm.orig
|
||||
share/unroff/scm/misc/hyper.scm
|
||||
share/unroff/scm/misc/hyper.scm.orig
|
||||
%%PORTDOCS%%share/doc/unroff/manual.ms
|
||||
%%PORTDOCS%%@dirrm share/doc/unroff
|
||||
@dirrm share/unroff/misc
|
||||
@dirrm share/unroff/scm/html
|
||||
@dirrm share/unroff/scm/misc
|
||||
@dirrm share/unroff/scm
|
||||
@dirrm share/unroff
|
||||
%%PORTDOCS%%%%DOCSDIR%%/manual.ms
|
||||
%%DATADIR%%/misc/sample.unroff
|
||||
%%DATADIR%%/misc/tmac.hyper
|
||||
%%DATADIR%%/scm/troff.scm
|
||||
%%DATADIR%%/scm/troff.scm.orig
|
||||
%%DATADIR%%/scm/html/common.scm
|
||||
%%DATADIR%%/scm/html/common.scm.orig
|
||||
%%DATADIR%%/scm/html/m.scm
|
||||
%%DATADIR%%/scm/html/man.scm
|
||||
%%DATADIR%%/scm/html/me.scm
|
||||
%%DATADIR%%/scm/html/me.scm.orig
|
||||
%%DATADIR%%/scm/html/ms.scm
|
||||
%%DATADIR%%/scm/html/ms.scm.orig
|
||||
%%DATADIR%%/scm/misc/hyper.scm
|
||||
%%DATADIR%%/scm/misc/hyper.scm.orig
|
||||
@dirrm %%DATADIR%%/scm/misc
|
||||
@dirrm %%DATADIR%%/scm/html
|
||||
@dirrm %%DATADIR%%/scm
|
||||
@dirrm %%DATADIR%%/misc
|
||||
@dirrm %%DATADIR%%
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user