From nobody@FreeBSD.org  Thu Mar 28 12:48:44 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 8581337B405
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 28 Mar 2002 12:48:44 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g2SKmiq89635;
	Thu, 28 Mar 2002 12:48:44 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200203282048.g2SKmiq89635@freefall.freebsd.org>
Date: Thu, 28 Mar 2002 12:48:44 -0800 (PST)
From: Anders Nor Berle <debolaz@debolaz.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: new port: microsoft sscli
X-Send-Pr-Version: www-1.0

>Number:         36433
>Category:       ports
>Synopsis:       new port: microsoft sscli
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lioux
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 28 12:50:01 PST 2002
>Closed-Date:    Sun Mar 31 08:43:00 PST 2002
>Last-Modified:  Sun Mar 31 08:43:00 PST 2002
>Originator:     Anders Nor Berle
>Release:        
>Organization:
Amphibic Online
>Environment:
>Description:
Microsoft(R) Shared Source Common Language Infrastructure

It's here baby, .NET

Note that this port is currently not working too well on all configurations, but it's been hard to track down what the problems are, so it's better if it's put out with a clear notice, so that people can try it and possible help make it better.

>How-To-Repeat:
Follow instructions in shell script.

>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:
#
#	sscli
#	sscli/Makefile
#	sscli/distinfo
#	sscli/pkg-comment
#	sscli/pkg-descr
#	sscli/pkg-message
#
echo c - sscli
mkdir -p sscli > /dev/null 2>&1
echo x - sscli/Makefile
sed 's/^X//' >sscli/Makefile << 'END-of-sscli/Makefile'
X# New ports collection makefile for:	sscli
X# Date created:		28 Mars 2002
X# Whom:			Anders Nor Berle
X#
X# $FreeBSD$
X#
X
XPORTNAME=	sscli
XPORTVERSION=	20020326
XCATEGORIES=	lang
XMASTER_SITES=	\
X		http://download.microsoft.com/download/.netframesdk/CLI/Beta1/WXP/EN-US/ \
X		http://www.corel.com/6763/downloads/mirror/microsoft/rotor/ \
X		ftp://ftp.corel.com/pub/mirror/Microsoft/rotor/
XDISTNAME=	${PORTNAME}${PORTVERSION}
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	debolaz@debolaz.com
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} > 500000
XBROKEN=		"This port will not compile on FreeBSD 5-CURRENT"
X.endif
X
X.if defined(WITH_DEBUG)
XENV_ARGS=	fastchecked
X.else
XENV_ARGS=	free
X.endif
X
Xpre-fetch:
X		@ ${ECHO} "========================================================"
X		@ ${CAT} ${PKGMESSAGE}
X		@ ${ECHO} "========================================================"
X
Xpost-patch:
X		@ ${MV} ${WRKDIR}/sscli/env.sh ${WRKDIR}/env.sh.dist
X		@ ${SED} -e 's!csh!xxx!g' \
X			${WRKDIR}/env.sh.dist > ${WRKDIR}/sscli/env.sh
X
Xdo-configure:
X		@ (cd ${WRKDIR}/sscli && . ./env.sh ${ENV_ARGS} && ./configure)
X
Xdo-build:
X		@ (cd ${WRKDIR}/sscli && . ./env.sh ${ENV_ARGS} && ./buildall)
X
Xpost-build:
X		@ (cd ${WRKDIR} \
X			&& find sscli/* -type f \
X			&& find -d sscli/* -type d -exec echo @dirrm {} ';' \
X			&& echo @dirrm sscli \
X		) > pkg-plist
X
X# Look, let's face the facts, there's no install included, this just copies the
X# sscli directory to ${PREFIX} (Which usually makes it /usr/local/sscli).
X# ** NOT PRETTY **
Xdo-install:
X		@ ${CP} -Rp ${WRKDIR}/sscli ${PREFIX}/sscli
X
X.include <bsd.port.post.mk>
END-of-sscli/Makefile
echo x - sscli/distinfo
sed 's/^X//' >sscli/distinfo << 'END-of-sscli/distinfo'
XMD5 (sscli20020326.tgz) = 3a880f17b22ecf936c2cda402bbca554
END-of-sscli/distinfo
echo x - sscli/pkg-comment
sed 's/^X//' >sscli/pkg-comment << 'END-of-sscli/pkg-comment'
XThe Microsoft(R) Shared Source CLI Implementation
END-of-sscli/pkg-comment
echo x - sscli/pkg-descr
sed 's/^X//' >sscli/pkg-descr << 'END-of-sscli/pkg-descr'
XThe Microsoft(R) Shared Source CLI Implementation is a file archive containing
Xworking source code for the ECMA-334 (C#) and ECMA-335 (Common Language
XInfrastructure, or CLI) standards. These standards together represent a
Xsubstantial subset of what is available in the Microsoft .NET Framework. In
Xaddition to the CLI implementation and the C# compiler, the Shared Source CLI
XImplementation contains a cornucopia of tools, utilities, additional Framework
Xclasses, and samples. It will build and run on the Microsoft Windows(R) XP and
Xthe FreeBSD operating systems.
X
XWWW: http://www.microsoft.com/sharedsource
END-of-sscli/pkg-descr
echo x - sscli/pkg-message
sed 's/^X//' >sscli/pkg-message << 'END-of-sscli/pkg-message'
X
X              * * * Read this * * *
X
XThis port is a work in progress. It may or may not work
Xon your machine. I have yet to figure out what makes it
Xbreak, so if it doesn't work for you, drop me an line
Xdescribing...
X
X * uname -a
X * Anything else you think might be relevant
X
XOf course, if you happend to know what causes the
Xbreakage, that will make usefull information too. ;-)
X
XOh, and the installation is currently not very
Xusefull, it'll only make a duplicate of the
Xdirectory somewhere else. Why? Because it'll take
Xsome time and effort to make a sane installation
Xfor this.
X
X - Anders Nor Berle <debolaz@debolaz.com>
X
END-of-sscli/pkg-message
exit

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->lioux 
Responsible-Changed-By: lioux 
Responsible-Changed-When: Fri Mar 29 12:24:00 PST 2002 
Responsible-Changed-Why:  
I've been conned to work with submitter 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36433 

From: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc: debolaz@debolaz.com, sobomax@FreeBSD.org
Subject: Re: ports/36433: new port: microsoft sscli
Date: Sat, 30 Mar 2002 12:57:56 -0300

 	A batch of patches to the original PR worked with
 submitter. Mostly easing the installation procedure.
 
 	However, sobomax recently added a lang/cli port
 which covers this one. We should work to see if there is anything
 we can add to his from this one.
 
 diff -ruN /tmp/update/sscli/Makefile sscli/Makefile
 --- /tmp/update/sscli/Makefile	Sat Mar 30 12:45:16 2002
 +++ sscli/Makefile	Fri Mar 29 21:27:32 2002
 @@ -17,45 +17,105 @@
  
  MAINTAINER=	debolaz@debolaz.com
  
 -.include <bsd.port.pre.mk>
 +NO_PACKAGE=	"Size: the data set is much too big"
 +USE_PERL5=	yes
 +WRKSRC=		${WRKDIR}/${PORTNAME}
 +LDCONFIG_DIRS=	%%PREFIX%%/sscli/build/v1.x86fstchk.rotor
  
 -.if ${OSVERSION} > 500000
 -BROKEN=		"This port will not compile on FreeBSD 5-CURRENT"
 -.endif
 +# perl regexp of items that should installed with execute perms
 +EXECUTABLES=	^sscli\/build\/v1.x86fstchk.rotor\/((resourcecompiler|al|clix|gacutil|csc)|sdk\/bin\/(sn|cordbg|ilasm|ildasm|metainfo|peverify))
  
 -.if defined(WITH_DEBUG)
 -ENV_ARGS=	fastchecked
 -.else
 -ENV_ARGS=	free
 -.endif
 +INSTALL_DIR=	${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755
 +SORT?=	/usr/bin/sort
  
  pre-fetch:
 -		@ ${ECHO} "========================================================"
 +		@ ${ECHO_MSG} "========================================================"
 +		@ ${ECHO_MSG} "MAKE SURE to check license at"
 +		@ ${ECHO_MSG} "http://msdn.microsoft.com/msdn-files/027/001/901/ShSourceCLIbetaLicense.htm"
 +		@ ${ECHO_MSG} "Ignorance IS NOT an excuse."
 +		@ ${ECHO_MSG} "========================================================"
  		@ ${CAT} ${PKGMESSAGE}
 -		@ ${ECHO} "========================================================"
 +		@ ${ECHO_MSG} "========================================================"
  
  post-patch:
 -		@ ${MV} ${WRKDIR}/sscli/env.sh ${WRKDIR}/env.sh.dist
 +		@ ${MV} ${WRKSRC}/env.sh ${WRKDIR}/env.sh.dist
  		@ ${SED} -e 's!csh!xxx!g' \
 -			${WRKDIR}/env.sh.dist > ${WRKDIR}/sscli/env.sh
 +			${WRKDIR}/env.sh.dist > ${WRKSRC}/env.sh
  
  do-configure:
 -		@ (cd ${WRKDIR}/sscli && . ./env.sh ${ENV_ARGS} && ./configure)
 +		@ (cd ${WRKSRC} && . ./env.sh ${ENV_ARGS} && ./configure)
  
  do-build:
 -		@ (cd ${WRKDIR}/sscli && . ./env.sh ${ENV_ARGS} && ./buildall)
 +		@ (cd ${WRKSRC} && . ./env.sh ${ENV_ARGS} && ./buildall)
  
 -post-build:
 +pre-install:
  		@ (cd ${WRKDIR} \
  			&& find sscli/* -type f \
 -			&& find -d sscli/* -type d -exec echo @dirrm {} ';' \
 +			&& find -d sscli/* ! -empty -type d -exec echo @dirrm {} ';' \
  			&& echo @dirrm sscli \
 -		) > pkg-plist
 +		) > ${PLIST}
 +
 +#package-noinstall:
 +#		@ ${ECHO_MSG} package-no-install currently is not advised.
 +#		@ ${ECHO_MSG} Try installing THEN packaging.
 +#		@ ${ECHO_MSG} For example, 'make clean install package'
 +#		@ ${FALSE}
  
  # Look, let's face the facts, there's no install included, this just copies the
  # sscli directory to ${PREFIX} (Which usually makes it /usr/local/sscli).
  # ** NOT PRETTY **
 -do-install:
 -		@ ${CP} -Rp ${WRKDIR}/sscli ${PREFIX}/sscli
 +
 +do-install: install-parse-plist install-run-scripts
 +
 +# idea taken from port hlserver-cs
 +# Contributed by <lioux@FreeBSD.org>
 +install-parse-plist: generate-plist
 +	@${PERL} -e 'open(FHANDLER,"${TMPPLIST}");' \
 +		-e 'open(FDIR,">${WRKDIR}/dirs.sh.tmp");' \
 +		-e 'open(FFILES,">${WRKDIR}/files.sh");' \
 +		-e 'while (!eof(FHANDLER)) {' \
 +			-e 'chop($$file = <FHANDLER>);' \
 +			-e '$$dir = $$file_partial = $$file;' \
 +			-e '$$file_partial =~ s!^${HLDSDIR:S!^/!!}!!;' \
 +			-e 'print FDIR "${INSTALL_DIR}", \
 +				" ", "\"${PREFIX}/$$dir\"", \
 +				"\n" if $$dir =~ s!(^\@dirrm\s+)!!;' \
 +			-e 'if ($$file !~ m!^\@!) {' \
 +				-e '$$program_flag = 0;' \
 +				-e 'if ("${EXECUTABLES}" ne "") {' \
 +					-e 'foreach $$program_pattern \
 +						(split (/\s+/,"${EXECUTABLES}")) {' \
 +						-e '($$program_flag = 1 , break) \
 +							if ($$file =~ /$$program_pattern$$/);' \
 +					-e '}' \
 +				-e '}' \
 +				-e 'print FFILES ($$program_flag == 0) ? \
 +					"${INSTALL_DATA}" : "${INSTALL_PROGRAM}";' \
 +				-e 'print FFILES " ", "\"${WRKDIR}/$$file_partial\"", \
 +					" ", "\"${PREFIX}/$$file\"", \
 +					"\n";' \
 +			-e '}' \
 +		-e '}' \
 +		-e 'close(FFILES);' \
 +		-e 'close(FDIR);' \
 +		-e 'close(FHANDLER);'
 +	@${SORT} ${WRKDIR}/dirs.sh.tmp > ${WRKDIR}/dirs.sh
 +
 +install-run-scripts:
 +.for script in dirs files
 +	@${SH} ${WRKDIR}/${script}.sh
 +.endfor
 +
 +.include <bsd.port.pre.mk>
 +
 +.if ${OSVERSION} > 500000
 +BROKEN=		"This port will not compile on FreeBSD 5-CURRENT"
 +.endif
 +
 +.if defined(WITH_DEBUG)
 +ENV_ARGS=	fastchecked
 +.else
 +ENV_ARGS=	free
 +.endif
  
  .include <bsd.port.post.mk>
 diff -ruN /tmp/update/sscli/pkg-descr sscli/pkg-descr
 --- /tmp/update/sscli/pkg-descr	Sat Mar 30 12:45:16 2002
 +++ sscli/pkg-descr	Fri Mar 29 15:11:57 2002
 @@ -1,10 +1,11 @@
 -The Microsoft(R) Shared Source CLI Implementation is a file archive containing
 -working source code for the ECMA-334 (C#) and ECMA-335 (Common Language
 -Infrastructure, or CLI) standards. These standards together represent a
 -substantial subset of what is available in the Microsoft .NET Framework. In
 -addition to the CLI implementation and the C# compiler, the Shared Source CLI
 -Implementation contains a cornucopia of tools, utilities, additional Framework
 -classes, and samples. It will build and run on the Microsoft Windows(R) XP and
 +The Microsoft(R) Shared Source CLI Implementation is a file archive
 +containing working source code for the ECMA-334 (C#) and ECMA-335
 +(Common Language Infrastructure, or CLI) standards. These standards
 +together represent a substantial subset of what is available in the
 +Microsoft .NET Framework. In addition to the CLI implementation and
 +the C# compiler, the Shared Source CLI Implementation contains a
 +cornucopia of tools, utilities, additional Framework classes, and
 +samples. It will build and run on the Microsoft Windows(R) XP and
  the FreeBSD operating systems.
  
 -WWW: http://www.microsoft.com/sharedsource
 +WWW: http://www.microsoft.com/sharedsource/

From: "Anders Nor Berle" <debolaz@debolaz.com>
To: <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: ports/36433: new port: microsoft sscli
Date: Sun, 31 Mar 2002 10:33:39 +0200 (CEST)

 Seems sobomax beat me to it, with a lot cooler port too. I'd much rather have his work in
 the tree than mine, so please close this pr. I only made this because it seemed like no
 one else was working on it.
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: lioux 
State-Changed-When: Sun Mar 31 08:36:44 PST 2002 
State-Changed-Why:  
At originator's request: sobomax just added a port of this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36433 
>Unformatted:
