From nobody@FreeBSD.org  Thu Dec 18 22:45:17 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 391FD1065674
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Dec 2008 22:45:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 2C5458FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Dec 2008 22:45:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mBIMjGC2004004
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Dec 2008 22:45:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id mBIMjGOJ004003;
	Thu, 18 Dec 2008 22:45:16 GMT
	(envelope-from nobody)
Message-Id: <200812182245.mBIMjGOJ004003@www.freebsd.org>
Date: Thu, 18 Dec 2008 22:45:16 GMT
From: "Jason W. Bacon" <jwbacon@tds.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: lang/mcc18-wrapper
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         129743
>Category:       ports
>Synopsis:       New port: lang/mcc18-wrapper
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    amdmi3
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 18 22:50:01 UTC 2008
>Closed-Date:    Sun Jan 18 03:03:11 UTC 2009
>Last-Modified:  Sun Jan 18 03:03:11 UTC 2009
>Originator:     Jason W. Bacon
>Release:        6.3-RELEASE
>Organization:
Acadix Consulting, LLC
>Environment:
FreeBSD sculpin.jbacon.dyndns.org 6.3-RELEASE FreeBSD 6.3-RELEASE #1: Mon Feb 25 18:34:05 CST 2008     bacon@sculpin.tds.net:/usr/obj/usr/src/sys/SCULPIN  i386
>Description:
This is a set of wrapper scripts for the Windows based Microchip MCC18 compiler and Wine.  The scripts make the compiler tools look like native Unix commands, and also perform basic configuration checks to help with setup issues.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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/mcc18-wrapper
#	lang/mcc18-wrapper/pkg-descr
#	lang/mcc18-wrapper/Makefile
#	lang/mcc18-wrapper/files
#	lang/mcc18-wrapper/files/pkg-message.in
#	lang/mcc18-wrapper/distinfo
#
echo c - lang/mcc18-wrapper
mkdir -p lang/mcc18-wrapper > /dev/null 2>&1
echo x - lang/mcc18-wrapper/pkg-descr
sed 's/^X//' >lang/mcc18-wrapper/pkg-descr << 'END-of-lang/mcc18-wrapper/pkg-descr'
XMCC18 is a Windows-based commercial compiler from Microship, Inc. for their
XPIC line of microcontrollers.  This port provides wrappers to make the
XMCC compiler tools look like native Unix commands.
X
XWWW:	http://www.microchip.com
END-of-lang/mcc18-wrapper/pkg-descr
echo x - lang/mcc18-wrapper/Makefile
sed 's/^X//' >lang/mcc18-wrapper/Makefile << 'END-of-lang/mcc18-wrapper/Makefile'
X# New ports collection makefile for:	mcc18_wrapper
X# Date created:		2008-11-25
X# Whom:			Jason Bacon <jwbacon@tds.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mcc18-wrapper
XPORTVERSION=	0.1
XCATEGORIES=	lang
XMASTER_SITES=	http://personalpages.tds.net/~jwbacon/Ports/distfiles/ \
X		http://jbacon.dyndns.org/~jbacon/Ports/distfiles/
X
XMAINTAINER=	jwbacon@tds.net
XCOMMENT=	Wrappers for Windows based Microchip MCC18 and Wine
X
XDEPENDS_RUN=	wine:${PORTSDIR}/emulators/wine
X
X.include <bsd.port.pre.mk>
X
XONLY_FOR_ARCHS!=awk '$$1 == "ONLY_FOR_ARCHS=" { print $$2,$$3,$$4,$$5 }' \
X		${PORTSDIR}/emulators/wine/Makefile
X
XNO_BUILD=	yes
X
XPKG_MESSAGE=	${WRKDIR}/pkg-message
XPLIST_FILES=	bin/mcc18 \
X		bin/mpasm \
X		bin/mplib \
X		bin/mplink
X
XMAN1=		mcc18.1 mpasm.1 mplib.1 mplink.1
X
Xdo-install:
X	${MKDIR} ${DATADIR}
X	${INSTALL_SCRIPT} ${WRKSRC}/mcc18 ${PREFIX}/bin
X	${INSTALL_SCRIPT} ${WRKSRC}/mpasm ${PREFIX}/bin
X	${INSTALL_SCRIPT} ${WRKSRC}/mplib ${PREFIX}/bin
X	${INSTALL_SCRIPT} ${WRKSRC}/mplink ${PREFIX}/bin
X	${INSTALL_MAN} ${WRKSRC}/mcc18.1 ${MAN1PREFIX}/man/man1
X	${INSTALL_MAN} ${WRKSRC}/mcc18.1 ${MAN1PREFIX}/man/man1/mpasm.1
X	${INSTALL_MAN} ${WRKSRC}/mcc18.1 ${MAN1PREFIX}/man/man1/mplib.1
X	${INSTALL_MAN} ${WRKSRC}/mcc18.1 ${MAN1PREFIX}/man/man1/mplink.1
X
X.include <bsd.port.post.mk>
END-of-lang/mcc18-wrapper/Makefile
echo c - lang/mcc18-wrapper/files
mkdir -p lang/mcc18-wrapper/files > /dev/null 2>&1
echo x - lang/mcc18-wrapper/files/pkg-message.in
sed 's/^X//' >lang/mcc18-wrapper/files/pkg-message.in << 'END-of-lang/mcc18-wrapper/files/pkg-message.in'
X
XBefore using the MCC18 compiler, each user must run 'setup_mcc18'.
XThis will install MCC18 under wine for that user only.
END-of-lang/mcc18-wrapper/files/pkg-message.in
echo x - lang/mcc18-wrapper/distinfo
sed 's/^X//' >lang/mcc18-wrapper/distinfo << 'END-of-lang/mcc18-wrapper/distinfo'
XMD5 (mcc18-wrapper-0.1.tar.gz) = c2b984b6dd76d7dd1d8d48389f2f41fa
XSHA256 (mcc18-wrapper-0.1.tar.gz) = 1976478e166a72fca7b516e830e75d680f9c2818170352f85e0db1e7a4624e25
XSIZE (mcc18-wrapper-0.1.tar.gz) = 1580
END-of-lang/mcc18-wrapper/distinfo
exit



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->amdmi3 
Responsible-Changed-By: amdmi3 
Responsible-Changed-When: Fri Dec 19 13:23:57 UTC 2008 
Responsible-Changed-Why:  
I'll take it. 

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

From: Jason Bacon <jwbacon@tds.net>
To: Dmitry Marakasov <amdmi3@amdmi3.ru>, bug-followup@FreeBSD.ORG
Cc:  
Subject: Re: ports/129743: New port: lang/mcc18-wrapper
Date: Fri, 19 Dec 2008 10:02:41 -0600

 Where did you get the notion that they can't access files outside the 
 Wine dir?  I've been using these scripts to build a project in 
 /home/bacon/VexCode.  You can try it yourself:
 
 http://personalpages.tds.net/~jwbacon/Ports/distfiles/VexCode.tar.gz
 
 Yes, the scripts are simple, but learning how to make MCC or any other 
 Windows app work is not trivial for newbies, and the port serves as a guide.
 
     -J
 
 Dmitry Marakasov wrote:
 >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129743
 >>     
 >
 > I don't really see the need for this port.
 > It's just one line scripts and it doesn't make any utils look native, as
 > they won't be able to access files outside wine dir.
 >
 >   
 
State-Changed-From-To: open->closed 
State-Changed-By: amdmi3 
State-Changed-When: Sun Jan 18 02:55:37 UTC 2009 
State-Changed-Why:  
I was wrong stating that wine apps can't access files outside wine dir 
(it's just that I've removed links to ~/ and Z: drive pointing to /). 

Still, I don't see much of use in this port - it relies on apps 
installed in wine, it relies on wine config, it's way too simple (one 
will more likely just run `wine mcc18 <filename>` than search for the 
port). Sorry. 

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