ports/54792: [patch] port lang/mozart unbreak and update to 1.2.5.20030212
Andy Hauser
andy-freebsd at splashground.de
Thu Jul 24 03:20:15 UTC 2003
>Number: 54792
>Category: ports
>Synopsis: [patch] port lang/mozart unbreak and update to 1.2.5.20030212
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 23 20:20:12 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Andy Hauser
>Release: FreeBSD 5.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD tower.paradise.splashground.de 5.1-RELEASE FreeBSD 5.1-RELEASE #7: Sat Jul 5 00:49:17 CEST 2003 root at tower.paradise.splashground.de:/usr/obj/usr/src/sys/TOWER i386
>Description:
Brocken when libgpm went out of the base, i guess.
Additionally the port includes values.h instead of limits.h and float.h.
See patch in the shar.
>How-To-Repeat:
portupgrade lang/mozart
>Fix:
See attached the shar of my lang/mozart directory.
It upgrade to newer version of mozart and adds a
patch to use float.h and limits.h instead of values.h.
Unfortunatly the gtk bindings for mozart are now split into its own package
or something and I didn't try to integrate it. Would probably be better
to make an own port of that extra package anyways.
Since I have neither experience with porting or
mozart itself, i could miss important stuff.
Though it seemed to work and also a package made
of it seemed to work on a different machine.
# 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:
#
# lang/mozart
# lang/mozart/scripts
# lang/mozart/scripts/post-install
# lang/mozart/Makefile
# lang/mozart/README.html
# lang/mozart/distinfo
# lang/mozart/pkg-descr
# lang/mozart/pkg-message
# lang/mozart/pkg-plist
# lang/mozart/files
# lang/mozart/files/patch-aa
#
echo c - lang/mozart
mkdir -p lang/mozart > /dev/null 2>&1
echo c - lang/mozart/scripts
mkdir -p lang/mozart/scripts > /dev/null 2>&1
echo x - lang/mozart/scripts/post-install
sed 's/^X//' >lang/mozart/scripts/post-install << 'END-of-lang/mozart/scripts/post-install'
X#!/bin/sh
X
X${PERL} -p -i -e"s:# OZHOME=.*:OZHOME=${PREFIX}/lib/oz:" ${PREFIX}/lib/oz/bin/oz
X
X${LN} -sf ${PREFIX}/lib/oz/bin/* ${PREFIX}/bin
END-of-lang/mozart/scripts/post-install
echo x - lang/mozart/Makefile
sed 's/^X//' >lang/mozart/Makefile << 'END-of-lang/mozart/Makefile'
X# New ports collection makefile for: mozart
X# Date created: 23. June 2000
X# Whom: Mathias Picker <mathiasp at virtual-earth.de>
X#
X# $FreeBSD: ports/lang/mozart/Makefile,v 1.17 2003/05/06 21:26:58 kris Exp $
X#
X
XPORTNAME= mozart
XPORTVERSION= 1.2.5.20030212
XCATEGORIES= lang tk83 parallel
XMASTER_SITES= ftp://ftp.mozart-oz.org/pub/mozart/${PORTVERSION}/tar/ \
X ftp://ftp.sics.se/pub/mozart/${PORTVERSION}/tar/
XDISTFILES= ${DISTNAME}-src.tar.gz ${MOZART_DOCS}
X.if !defined(NOPORTDOCS)
XDISTFILES+= ${MOZART_DOCS}
X.endif
X
XMAINTAINER= mathiasp at virtual-earth.de
XCOMMENT= A distributed language with constraint-based inference
X
XBUILD_DEPENDS= emacs:${PORTSDIR}/editors/emacs21\
X ${LOCALBASE}/include/gmp.h:${PORTSDIR}/math/libgmp4
XLIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm \
X gmp.6:${PORTSDIR}/math/libgmp4\
X tk83.1:${PORTSDIR}/x11-toolkits/tk83
X
XMOZART_DOCS= mozart-${PORTVERSION}-doc.tar.gz
X
XSCRIPTS_ENV= LN=${LN} PERL=${PERL}
XALL_TARGET=
XMAKE_ARGS= PREFIX=${PREFIX}/lib/oz
XUSE_BISON= yes
XUSE_GMAKE= yes
XHAS_CONFIGURE= yes
XUSE_XLIB= yes
XWANT_AUTOCONF_VER= 213
X# magic wand: set INSTALL to some absurd value, or else
X# mozart's configure will not find the right install
X# when configuring as root.
XCONFIGURE_ENV= INSTALL=${CHMOD}
XCONFIGURE_ARGS= --prefix=${PREFIX}/lib/oz --disable-doc \
X --with-inc-dir=${LOCALBASE}/include/tcl8.3,${LOCALBASE}/include/tk8.3,${LOCALBASE}/include \
X --with-lib-dir=${LOCALBASE}/lib --with-tcl-lib=${LOCALBASE}/lib \
X --with-tk-lib=${LOCALBASE}/lib \
X --with-tkinclude=${LOCALBASE}/include/tk8.3
X
Xpre-extract:
X @${ECHO}
X @${ECHO} -----------------------------------------------------
X @${ECHO}
X @${ECHO} If you have problems building mozart,
X @${ECHO} deinstall any old version of mozart
X @${ECHO} and unset OZHOME
X @${ECHO}
X @${ECHO} ----------------------------------------------------
X @${ECHO}
X
Xpost-patch:
X #cd ${WRKSRC}/contrib/gtk \
X # && ${AUTOCONF} ${AUTOCONF_ARGS} -l ${WRKSRC}
X cd ${WRKSRC}/platform/emulator \
X && ${AUTOCONF} ${AUTOCONF_ARGS} -l ${WRKSRC}
X cd ${WRKSRC}/platform/tools/gump/ozflex \
X && ${AUTOCONF} ${AUTOCONF_ARGS} -l ${WRKSRC}
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X @${TAR} --unlink -xzpf ${DISTDIR}/${MOZART_DOCS} \
X -C ${PREFIX}/lib/oz
X @${RM} -rf ${PREFIX}/lib/oz/doc
X @${MV} ${PREFIX}/lib/oz/mozart/doc ${PREFIX}/lib/oz
X @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/oz/doc
X @${FIND} ${PREFIX}/lib/oz -type d -print0 \
X | ${XARGS} -0 ${CHMOD} 755
X @${FIND} ${PREFIX}/lib/oz/doc -type f -print0 \
X | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
X @${RM} -rf ${PREFIX}/lib/oz/mozart
X.endif
X @cd ${PREFIX} ; ${FIND} lib/oz -type f -o -type l | sort \
X > ${WRKDIR}/PLIST.lib-oz
X @cd ${PREFIX} ; ${FIND} lib/oz -type d | sort -r \
X | ${SED} -e 's/^/@dirrm /g' \
X >> ${WRKDIR}/PLIST.lib-oz
X @${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
X @${ECHO_CMD} "/Insert PLIST.lib-oz" >> ${WRKDIR}/ex.script
X @${ECHO_CMD} "d" >> ${WRKDIR}/ex.script
X @${ECHO_CMD} "r ${WRKDIR}/PLIST.lib-oz" >> ${WRKDIR}/ex.script
X @${ECHO_CMD} "x!" >> ${WRKDIR}/ex.script
X @${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-lib-oz
X @cd ${WRKDIR} ; ex < ex.script
X @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-lang/mozart/Makefile
echo x - lang/mozart/README.html
sed 's/^X//' >lang/mozart/README.html << 'END-of-lang/mozart/README.html'
X<html>
X<title> The FreeBSD Ports Collection (lang/mozart)</title>
X<head><h1> The FreeBSD Ports Collection ("lang/mozart")</h1> </head> <hr>
X<body>
X
X<p>You are now in the directory for the port "lang/mozart" (package name "mozart-1.2.4.20020829").
X
X<p>This is the one-line description for this port:
X
X<p><hr><p>
XA distributed language with constraint-based inference
X<p><hr>
X
X<p>Please read the "<a href="pkg-descr">description file</a>" for a
Xlonger description.
X
X<p>Go to the <a href="../../README.html">top of the ports tree</a> for
Xa summary on how to use the ports collection.
X
X<p>
XThis port requires package(s) "XFree86-libraries-4.2.1_5 Xaw3d-1.5 autoconf213-2.13.000227_5 bison-1.75 emacs-21.2_2 expat-1.95.5 freetype2-2.1.2_1 gdbm-1.8.0 gettext-0.11.5_1 gmake-3.80 imake-4.2.0_1 jpeg-6b_1 libiconv-1.8_2 libungif-4.1.0b1 m4-1.4_1 perl-5.6.1_11 png-1.2.5 tcl-8.3.5 tiff-3.5.7 tk-8.3.5" to build.
X<p>
XThis port requires package(s) "XFree86-libraries-4.2.1_5 freetype2-2.1.2_1 gdbm-1.8.0 imake-4.2.0_1 perl-5.6.1_11 tcl-8.3.5 tk-8.3.5" to run.
X
X<p><hr><p>
X<a href="../README.html"> Go up one level</a>
X|
X<a href="../../README.html"> Go to top of ports tree</a>
X</body>
X</html>
END-of-lang/mozart/README.html
echo x - lang/mozart/distinfo
sed 's/^X//' >lang/mozart/distinfo << 'END-of-lang/mozart/distinfo'
XMD5 (mozart-1.2.5.20030212-src.tar.gz) = b3811893c9a230a46ee4e5b4eeb5d65c
XMD5 (mozart-1.2.5.20030212-doc.tar.gz) = 389ee3f247ccb95e58bd949db4612875
END-of-lang/mozart/distinfo
echo x - lang/mozart/pkg-descr
sed 's/^X//' >lang/mozart/pkg-descr << 'END-of-lang/mozart/pkg-descr'
XThe Mozart system provides state-of-the-art support in two areas: open
Xdistributed computing and constraint-based inference. Mozart
Ximplements Oz, a concurrent object-oriented language with dataflow
Xsynchronization. Oz combines concurrent and distributed programming
Xwith logical constraint-based inference, making it a unique choice for
Xdeveloping multi-agent systems. Mozart is an ideal platform for both
Xgeneral-purpose distributed applications as well as for hard problems
Xrequiring sophisticated optimization and inferencing abilities. We
Xhave developed applications in scheduling and time-tabling, in
Xplacement and configuration, in natural language and knowledge
Xrepresentation, multi-agent systems and sophisticated collaborative
Xtools.
X
XFor more check the excellent documentation at:
X
XWWW: http://www.mozart-oz.org/
X
X- Mathias
Xmathiasp at virtual-earth.de
END-of-lang/mozart/pkg-descr
echo x - lang/mozart/pkg-message
sed 's/^X//' >lang/mozart/pkg-message << 'END-of-lang/mozart/pkg-message'
X--------------------------------------------------
X
XIf you have both emacs and xemacs installed,
Xset OZEMACS=xemacs in your .profile or .login
Xto choose xemacs over emacs.
X
X--------------------------------------------------
END-of-lang/mozart/pkg-message
echo x - lang/mozart/pkg-plist
sed 's/^X//' >lang/mozart/pkg-plist << 'END-of-lang/mozart/pkg-plist'
Xbin/convertTextPickle
Xbin/oldpickle2text
Xbin/oz
Xbin/ozc
Xbin/ozd
Xbin/ozengine
Xbin/ozl
Xbin/ozplatform
Xbin/oztool
Xbin/pickle2text
Xbin/text2pickle
X at comment Insert PLIST.lib-oz here
X at comment -=[ begin PLIST.lib-oz ]=-
X at comment -=[ end PLIST.lib-oz ]=-
END-of-lang/mozart/pkg-plist
echo c - lang/mozart/files
mkdir -p lang/mozart/files > /dev/null 2>&1
echo x - lang/mozart/files/patch-aa
sed 's/^X//' >lang/mozart/files/patch-aa << 'END-of-lang/mozart/files/patch-aa'
X--- platform/emulator/libfd/std.cc Tue Aug 20 16:19:47 2002
X+++ platform/emulator/libfd/std.cc Thu Jul 24 01:55:16 2003
X@@ -44,7 +44,8 @@
X
X #else
X
X-#include <values.h>
X+#define DMAXPOWTWO 3321
X+#include <limits.h>
X
X #endif
X
END-of-lang/mozart/files/patch-aa
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list