Subject: pkg/20574: New package for NetBSD
To: None <gnats-bugs@gnats.netbsd.org>
From: None <gan@starling.us>
List: netbsd-bugs
Date: 03/03/2003 11:03:02
>Number:         20574
>Category:       pkg
>Synopsis:       New package for NetBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 04 08:59:02 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Gan Uesli Starling
>Release:        1.6
>Organization:
>Environment:
NetBSD marduk.amalekite.net 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep  8 19:43:40 UTC
 2002     autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i3
86/compile/GENERIC i386

>Description:
Editor for Unicode "Yudit" only for text, not HTML, etc. Another 
editor not in NetBSD package system "mined" from this URL...

http://towo.net/mined/

...has a makefile for BSD but won't build on NetBSD. That editor
is for Unicode and does syntax highlighting in HTML, etc. etc. It
looks to beat hell out of Yudit. As of now I am having to reboot
to Win2K to use the UniRed editor for all my Unicode HTML editing.

The mined has a makefile.bsd but it does not build and gives
an error on 'make -f makefile.bsd'. I was hoping that maybe
it might be considered for addition into the NetBSD package
system. I know about Yudit. Yudit is okay, but only just. I
keep having to boot to Win2K to use UniRed to edit my HTML
in Unicode. That is a bit of a drag. Kindly consider mined.

Here is the error I got from trying to build mined myself.

> baal: {22} make -f makefile.bsd
> gcc -DSGTTY -Dunix -Dunix -ansi -Waggregate-return -Winline 
> -Wimplicit-int -Wunused -Wswitch -Wchar-subscripts  -Wparentheses -O2 
> -ggdb -Wmissing-prototypes -c io.c
> gcc -DSGTTY -Dunix -Dunix -ansi -Waggregate-return -Winline 
> -Wimplicit-int -Wunused -Wswitch -Wchar-subscripts  -Wparentheses -O2 
> -ggdb -c mined1.c
> gcc -DSGTTY -Dunix -Dunix -ansi -Waggregate-return -Winline 
> -Wimplicit-int -Wunused -Wswitch -Wchar-subscripts  -Wparentheses -O2 
> -ggdb -Wmissing-declarations -c minedaux.c
> gcc -DSGTTY -Dunix -Dunix -ansi -Waggregate-return -Winline 
> -Wimplicit-int -Wunused -Wswitch -Wchar-subscripts  -Wparentheses -O2 
> -ggdb -c mined2.c
> gcc -DSGTTY -Dunix -Dunix -ansi -Waggregate-return -Winline 
> -Wimplicit-int -Wunused -Wswitch -Wchar-subscripts  -Wparentheses -O2 
> -ggdb -Wmissing-declarations -c output.c
> gcc -DSGTTY -Dunix -Dunix -ansi -Waggregate-return -Winline 
> -Wimplicit-int -Wunused -Wswitch -Wchar-subscripts  -Wparentheses -O2 
> -ggdb -Wmissing-declarations -c keymap.c
> gcc -DSGTTY -Dunix -Dunix -ansi -Waggregate-return -Winline 
> -Wimplicit-int -Wunused -Wswitch -Wchar-subscripts  -Wparentheses -O2 
> -ggdb -Wmissing-declarations -c mousemen.c
> gcc -DSGTTY -Dunix -Dunix -ansi -Waggregate-return -Winline 
> -Wimplicit-int -Wunused -Wswitch -Wchar-subscripts  -Wparentheses -O2 
> -ggdb -Wmissing-declarations -c search.c
> gcc -DSGTTY -Dunix -Dunix -ansi -Waggregate-return -Winline 
> -Wimplicit-int -Wunused -Wswitch -Wchar-subscripts  -Wparentheses -O2 
> -ggdb -c iswide.c
> gcc -DSGTTY -Dunix -Dunix -ansi -Waggregate-return -Winline 
> -Wimplicit-int -Wunused -Wswitch -Wchar-subscripts  -Wparentheses -O2 
> -ggdb -c iscombin.c
> gcc -DSGTTY -Dunix -Dunix -ansi -Waggregate-return -Winline 
> -Wimplicit-int -Wunused -Wswitch -Wchar-subscripts  -Wparentheses -O2 
> -ggdb -c isrtol.c
> gcc -DSGTTY -Dunix -Dunix -ansi -Waggregate-return -Winline 
> -Wimplicit-int -Wunused -Wswitch -Wchar-subscripts  -Wparentheses -O2 
> -ggdb -c locale.c
> gcc io.o mined1.o minedaux.o mined2.o output.o keymap.o mousemen.o 
> search.o iswide.o iscombin.o isrtol.o locale.o -L/usr/local/lib 
> -lncurses  -o mined
> ld: cannot find -lncurses
> *** Error code 1
> 
> Stop.
> make: stopped in /home/aplonis/mined-2000.5/src
> baal: {23} man lncurses
> man: no entry for lncurses in the manual.
> baal: {24} make -f makefile
> gcc io.o mined1.o minedaux.o mined2.o output.o keymap.o mousemen.o 
> search.o iswide.o iscombin.o isrtol.o locale.o -lncurses  -o mined
> ld: cannot find -lncurses
> *** Error code 1
> 
> Stop.
> make: stopped in /home/aplonis/mined-2000.5/src
>How-To-Repeat:
Try to install mined from tarball downloaded from 
http://towo.net/mined/ as per README in said tarball.
>Fix:


Alistair Crooks replied to me and suggested I submit this PR and
include these files which he attached. Mr. Crooks called these files
mined.shar and patch-aa. They follow...

<mined.shar>
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mined/DESCR
#	mined/Makefile
#	mined/PLIST
#	mined/distinfo
#	mined/patches
#
echo x - mined/DESCR
sed 's/^X//' >mined/DESCR << 'END-of-mined/DESCR'
XMined is a text editor with 
X	Good interactive features 
X	an intuitive user interface 
X	command control and pull-down menus available 
X	control and function key or mouse control 
X
XMany useful text editing capabilities 
X       extensive Unicode support, including double-width and combining characters, 
X                 keyboard mapping and script highlighting 
X       many text editing features, e.g. paragraph wrapping, smart quotes, multi-line support in search and replacement patterns 
X       program editing features, HTML support and syntax highlighting, identifier search 
X       systematic text and file handling safety, avoiding loss of data 
X
X"Small-footprint" operation and portability 
X       plain text mode (terminal) operation 
X       instant start-up 
X       cross-platform operation (Unix, DOS/Windows) 
END-of-mined/DESCR
echo x - mined/Makefile
sed 's/^X//' >mined/Makefile << 'END-of-mined/Makefile'
X# $NetBSD$
X#
X
XDISTNAME=	mined-2000.5
XCATEGORIES=	editors
XMASTER_SITES=	http://towo.net/mined/
X
XMAINTAINER=	packages@netbsd.org
XHOMEPAGE=	http://towo.net/mined/
XCOMMENT=	hteml-aware editor
X
XUSE_BUILDLINK2=	yes
X
XWRKSRC=		${WRKDIR}/${DISTNAME}/src
X
XMAKEFILE=	makefile.bsd
X
X.include "../../devel/ncurses/buildlink2.mk"
X.include "../../mk/bsd.pkg.mk"
END-of-mined/Makefile
echo x - mined/PLIST
sed 's/^X//' >mined/PLIST << 'END-of-mined/PLIST'
X@comment $NetBSD$
Xbin/mined
Xshare/help/mined.hlp
Xman/man1/mined.1
END-of-mined/PLIST
echo x - mined/distinfo
sed 's/^X//' >mined/distinfo << 'END-of-mined/distinfo'
X$NetBSD$
X
XSHA1 (mined-2000.5.tar.gz) = 76e08c1ecdf0a18be48dcdf624c8652c80a4a293
XSize (mined-2000.5.tar.gz) = 620587 bytes
XSHA1 (patch-aa) = b6cdd15625e8651b61d91196552a56c296132237
END-of-mined/distinfo
echo c - mined/patches
mkdir -p mined/patches > /dev/null 2>&1
exit
</mined.share>




<patch.aa>
$NetBSD$

--- makefile.bsd	2003/03/03 15:02:38	1.1
+++ makefile.bsd	2003/03/03 15:04:03
@@ -4,10 +4,10 @@
 
 #############################################################################
 # Where and how to install
-prefix	= $(INSTALLROOT)/usr/local
+prefix	= $(PREFIX)
 bindir	= $(prefix)/bin
 helpdir	= $(prefix)/share/help
-mandir	= $(prefix)/share/man
+mandir	= $(prefix)/man
 INSTALL = install
 #INSTALL = /bin/cp -p
 
@@ -16,7 +16,7 @@
 # compilation target options
 
 # terminal handling mode 1: termio
-#SCREEN	= -DTERMIO
+SCREEN	= -DTERMIO
 # link termcap functions:
 #SLIB	= -ltermcap	# usual termcap library
 #SLIB	= -L/usr/lib/termcap -ltermcap	# if deprecated (Linux)
@@ -24,10 +24,10 @@
 SLIB	= -lncurses	# includes termcap library (Linux)
 
 # terminal handling mode 2: sgtty (old, BSD)
-SCREEN	= -DSGTTY
+#SCREEN	= -DSGTTY
 #SLIB	= -ltermcap
 # the following was reported to compile better on some BSD system:
-SLIB	= -L/usr/local/lib -lncurses	# includes termcap library
+#SLIB	= -L/usr/local/lib -lncurses	# includes termcap library
 
 # terminal handling mode 3: curses
 # Choose curses only in case of emergency, else better leave it.
</patch.aa>
>Release-Note:
>Audit-Trail:
>Unformatted: