aboutsummaryrefslogtreecommitdiffstats
path: root/editors/biew
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2010-10-06 21:13:52 +0800
committerdanfe <danfe@FreeBSD.org>2010-10-06 21:13:52 +0800
commit876816070275be808cacdb62d38eba00bd7108a5 (patch)
treeaf5580fbcf87189d4f90ccef188a28e8ff160f1e /editors/biew
parent449f6b22a607b547128320006e329fa5e1ff3234 (diff)
downloadfreebsd-ports-gnome-876816070275be808cacdb62d38eba00bd7108a5.tar.gz
freebsd-ports-gnome-876816070275be808cacdb62d38eba00bd7108a5.tar.zst
freebsd-ports-gnome-876816070275be808cacdb62d38eba00bd7108a5.zip
- Install missing syntax highlighting schemes, fix location of skins
- Install default set of translation (xlat) tables - Convert documentation text files from DOS CR/LF to Unix LF - Bring back pkg-plist since file list expanded significantly - Attempt to unbreak on ia64 [*] Tested on: pluto1 (only with ncurses) [*]
Diffstat (limited to 'editors/biew')
-rw-r--r--editors/biew/Makefile46
-rw-r--r--editors/biew/pkg-plist44
2 files changed, 67 insertions, 23 deletions
diff --git a/editors/biew/Makefile b/editors/biew/Makefile
index e2cd7187425e..164f5a2eb5d9 100644
--- a/editors/biew/Makefile
+++ b/editors/biew/Makefile
@@ -7,6 +7,7 @@
PORTNAME= biew
PORTVERSION= 6.1.0
+PORTREVISION= 1
CATEGORIES= editors
MASTER_SITES= SF/beye/biew/${PORTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}-src
@@ -21,18 +22,10 @@ CONFIGURE_ARGS= --cc="${CC}" --with-extraincdir="${LOCALBASE}/include" \
USE_BZIP2= yes
USE_GMAKE= yes
USE_ICONV= yes
+USE_DOS2UNIX= ${PORTDOCS}
MAKEFILE= makefile
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.//g}
-PLIST_FILES= bin/biew \
- %%DATADIR%%/assembly.skn \
- %%DATADIR%%/biew.hlp \
- %%DATADIR%%/golded.skn \
- %%DATADIR%%/insight.skn \
- %%DATADIR%%/light.skn \
- %%DATADIR%%/standard.skn
-PLIST_DIRS= %%DATADIR%%
-
MAN1= biew.1
PORTDOCS= biew_en.txt biew_ru.txt develop.en develop.ru file_ini.en \
file_ini.ru licence.en licence.ru release.txt unix.txt
@@ -41,6 +34,10 @@ OPTIONS= SLANG "Use S-Lang based display renderer" on
.include <bsd.port.pre.mk>
+.if ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
+BROKEN= Does not compile
+.endif
+
.if defined(WITH_SLANG)
LIB_DEPENDS= slang.2:${PORTSDIR}/devel/libslang2
CONFIGURE_ARGS+= --enable-slang
@@ -48,26 +45,29 @@ CONFIGURE_ARGS+= --enable-slang
CONFIGURE_ARGS+= --enable-curses
.endif
-.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
-BROKEN= Does not compile
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},' ${WRKSRC}/configure
+# Allow it to find definition of `uintmax_t' (required at least for ia64)
+ @${REINPLACE_CMD} -e 's,<sys/types,<stdint,' \
+ ${WRKSRC}/biewlib/sysdep/generic/__config.h
-post-build:
- ${LN} -sf ../../biewlib ${WRKSRC}/tools/biewhlp/biewlib
- cd ${WRKSRC}/tools/biewhlp && ${GMAKE} ${MAKE_ARGS}
- ${LN} -sf ../../biewlib ${WRKSRC}/tools/lzss/biewlib
- cd ${WRKSRC}/tools/lzss && ${GMAKE} ${MAKE_ARGS}
- (cd ${WRKSRC}/hlp; ${LN} -sf ../tools/biewhlp/biewhlp; \
- ${LN} -sf ../tools/lzss/lzss; ./biewhlp biewhlp.prj)
+# Rebuilding of help file does not work at least on ia64; use precompiled
+# file provided by original vendor (MD5 sums of both match)
+#post-build:
+# ${LN} -sf ../../biewlib ${WRKSRC}/tools/biewhlp/biewlib
+# cd ${WRKSRC}/tools/biewhlp && ${GMAKE} ${MAKE_ARGS}
+# ${LN} -sf ../../biewlib ${WRKSRC}/tools/lzss/biewlib
+# cd ${WRKSRC}/tools/lzss && ${GMAKE} ${MAKE_ARGS}
+# (cd ${WRKSRC}/hlp; ${LN} -sf ../tools/biewhlp/biewhlp; \
+# ${LN} -sf ../tools/lzss/lzss; ./biewhlp biewhlp.prj)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/biew ${PREFIX}/bin
- @${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/bin_rc/skn/*.skn ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/hlp/biew.hlp ${DATADIR}
+ @${MKDIR} ${DATADIR}/skn ${DATADIR}/syntax ${DATADIR}/xlt
+ ${INSTALL_DATA} ${WRKSRC}/bin_rc/biew.hlp ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/bin_rc/skn/* ${DATADIR}/skn
+ ${INSTALL_DATA} ${WRKSRC}/bin_rc/syntax/* ${DATADIR}/syntax
+ ${INSTALL_DATA} ${WRKSRC}/bin_rc/xlt/russian/* ${DATADIR}/xlt
${INSTALL_MAN} ${WRKSRC}/doc/biew.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
diff --git a/editors/biew/pkg-plist b/editors/biew/pkg-plist
new file mode 100644
index 000000000000..4f6c37d818dd
--- /dev/null
+++ b/editors/biew/pkg-plist
@@ -0,0 +1,44 @@
+bin/biew
+%%DATADIR%%/biew.hlp
+%%DATADIR%%/skn/assembly.skn
+%%DATADIR%%/skn/golded.skn
+%%DATADIR%%/skn/insight.skn
+%%DATADIR%%/skn/light.skn
+%%DATADIR%%/skn/standard.skn
+%%DATADIR%%/syntax/awk.stx
+%%DATADIR%%/syntax/c.stx
+%%DATADIR%%/syntax/cpp.stx
+%%DATADIR%%/syntax/cxx.stx
+%%DATADIR%%/syntax/diff.stx
+%%DATADIR%%/syntax/fortran.stx
+%%DATADIR%%/syntax/html.stx
+%%DATADIR%%/syntax/java.stx
+%%DATADIR%%/syntax/makefile.stx
+%%DATADIR%%/syntax/pascal.stx
+%%DATADIR%%/syntax/perl.stx
+%%DATADIR%%/syntax/python.stx
+%%DATADIR%%/syntax/sh.stx
+%%DATADIR%%/syntax/sql.stx
+%%DATADIR%%/syntax/syntax.stx
+%%DATADIR%%/syntax/template.stx
+%%DATADIR%%/syntax/xml.stx
+%%DATADIR%%/xlt/alt2koi.xlt
+%%DATADIR%%/xlt/alt2mac.xlt
+%%DATADIR%%/xlt/alt2win.xlt
+%%DATADIR%%/xlt/e2a.xlt
+%%DATADIR%%/xlt/gost872a.xlt
+%%DATADIR%%/xlt/ibm2alt.xlt
+%%DATADIR%%/xlt/iso2alt.xlt
+%%DATADIR%%/xlt/koi02alt.xlt
+%%DATADIR%%/xlt/koi2alt.xlt
+%%DATADIR%%/xlt/koi72alt.xlt
+%%DATADIR%%/xlt/koi82_2a.xlt
+%%DATADIR%%/xlt/koi8a2a.xlt
+%%DATADIR%%/xlt/koi8e2a.xlt
+%%DATADIR%%/xlt/mac2alt.xlt
+%%DATADIR%%/xlt/mik2alt.xlt
+%%DATADIR%%/xlt/win2alt.xlt
+@dirrm %%DATADIR%%/xlt
+@dirrm %%DATADIR%%/syntax
+@dirrm %%DATADIR%%/skn
+@dirrm %%DATADIR%%