Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 2002 05:56:07 -0800 (PST)
From:      Peter Bozarov <peter@bozz.demon.nl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/44565: NEW PORT: devel/libds (Useful data structures library)
Message-ID:  <200210281356.g9SDu70k090102@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         44565
>Category:       ports
>Synopsis:       NEW PORT: devel/libds (Useful data structures library)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 28 06:00:10 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Peter Bozarov
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
-
>Environment:
FreeBSD grid 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Sun Oct 27 11:54:16 CET 2002     root@grid:/usr/src/sys/compile/GRID  i386
>Description:
A small, but useful library of data structures. Has AVL tree, binary heap, hash table, a queue, a stack, variable length array
>How-To-Repeat:
      
>Fix:
# 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:
#
#       libds
#       libds/Makefile
#       libds/pkg-comment
#       libds/pkg-descr
#       libds/pkg-plist
#       libds/distinfo
#
echo c - libds
mkdir -p libds > /dev/null 2>&1
echo x - libds/Makefile
sed 's/^X//' >libds/Makefile << 'END-of-libds/Makefile'
X# New ports collection makefile for:   libds
X# Date created:                25 October 2002
X# Whom:                        Peter Bozarov (kingofgib@users.sourceforge.net)
X#
X# $FreeBSD$
X#
X
XPORTNAME=              libds
XPORTVERSION=           1.0
XCATEGORIES=            devel
XMASTER_SITES=          ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=     libds
XDISTNAME=              libds-2.1
X
XMAINTAINER=            kingofgib@users.sourceforge.net
X
XINSTALLS_SHLIB=                yes
XALL_TARGET=            gcc
X
X.include <bsd.port.pre.mk>
X
XMAN3=  libds.3
XHTML=  avltree.html heap.html parray.html set.html hashtbl.html \
X       index.html queue.html stack.html
X
X# Copy header file and libraries.
Xdo-install:
X       ${INSTALL_DATA} ${WRKSRC}/ds.h ${PREFIX}/include
X       ${INSTALL_DATA} ${WRKSRC}/libds.a ${PREFIX}/lib
X       ${INSTALL_DATA} ${WRKSRC}/libds.so ${PREFIX}/lib/libds.so.1
X
X# Make symbolic link to the shared library
X# Install man pages.
X# Instlal HTML pages.
Xpost-install:
X       ${LN} -sf ${PREFIX}/lib/libds.so.1 ${PREFIX}/lib/libds.so
X.for i in ${MAN3}
X       ${INSTALL_MAN} ${WRKSRC}/${i} ${PREFIX}/man/man3/${i}
X.endfor
X.if !defined(NOPORTDOCS)
X       ${MKDIR} ${PREFIX}/share/doc/libds
X.for i in ${HTML}
X       ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/libds/${i}
X.endfor
X.endif
X
X.include <bsd.port.post.mk>
END-of-libds/Makefile
echo x - libds/pkg-comment
sed 's/^X//' >libds/pkg-comment << 'END-of-libds/pkg-comment'
XANSI Generic Data Structures Library
END-of-libds/pkg-comment
echo x - libds/pkg-descr
sed 's/^X//' >libds/pkg-descr << 'END-of-libds/pkg-descr'
XLibDS is a small but powerful and easy to use library containing a few
Xvery useful data structures. Currently, the following data structures are
Xsupported:
X  - a balanced binary tree (an AVL tree);
X  - a binary HEAP;
X  - a QUEUE;
X  - a HASH table;
X  - a SET and a BAG;
X  - a variable length array that can grows dynamically as new elements are
X    added or deleted (PARRAY).
X  - a STACK;
X
XLibDS has been designed to be very easy to use, without sacrificing either
Xflexibility or speed. The API is small, and clean.
END-of-libds/pkg-descr
echo x - libds/pkg-plist
sed 's/^X//' >libds/pkg-plist << 'END-of-libds/pkg-plist'
Xinclude/ds.h
Xlib/libds.a
Xlib/libds.so.1
Xlib/libds.so
X%%PORTDOCS%%share/doc/libds/avltree.html
X%%PORTDOCS%%share/doc/libds/hashtbl.html
X%%PORTDOCS%%share/doc/libds/heap.html
X%%PORTDOCS%%share/doc/libds/index.html
X%%PORTDOCS%%share/doc/libds/parray.html
X%%PORTDOCS%%share/doc/libds/queue.html
X%%PORTDOCS%%share/doc/libds/set.html
X%%PORTDOCS%%share/doc/libds/stack.html
X%%PORTDOCS%%@unexec rmdir %D/share/doc/libds 2>/dev/null || true
X
END-of-libds/pkg-plist
echo x - libds/distinfo
sed 's/^X//' >libds/distinfo << 'END-of-libds/distinfo'
XMD5 (libds-2.1.tar.gz) = 91be12c3ee752ac3ae76ad2eef1b83c9
END-of-libds/distinfo
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210281356.g9SDu70k090102>