[30388] trunk/base

source_changes at macosforge.org source_changes at macosforge.org
Fri Oct 26 04:21:58 PDT 2007


Revision: 30388
          http://trac.macosforge.org/projects/macports/changeset/30388
Author:   afb at macports.org
Date:     2007-10-26 04:21:57 -0700 (Fri, 26 Oct 2007)

Log Message:
-----------
add the FreeBSD and Fedora packaging

Modified Paths:
--------------
    trunk/base/configure
    trunk/base/configure.ac

Added Paths:
-----------
    trunk/base/portmgr/fedora/
    trunk/base/portmgr/fedora/REQUIREMENTS
    trunk/base/portmgr/fedora/macports.spec.in
    trunk/base/portmgr/freebsd/
    trunk/base/portmgr/freebsd/Makefile.in
    trunk/base/portmgr/freebsd/pkg-descr
    trunk/base/portmgr/freebsd/pkg-plist

Modified: trunk/base/configure
===================================================================
--- trunk/base/configure	2007-10-26 07:49:31 UTC (rev 30387)
+++ trunk/base/configure	2007-10-26 11:21:57 UTC (rev 30388)
@@ -12109,7 +12109,7 @@
 
 
 # Output
-ac_config_files="$ac_config_files Makefile Mk/macports.autoconf.mk doc/prefix.mtree doc/macosx.mtree doc/macports.conf src/Makefile src/macports1.0/macports_autoconf.tcl src/tclobjc1.0/Makefile src/port1.0/port_autoconf.tcl src/registry1.0/registry_autoconf.tcl src/programs/Makefile src/macports1.0/macports_fastload.tcl"
+ac_config_files="$ac_config_files Makefile Mk/macports.autoconf.mk doc/prefix.mtree doc/macosx.mtree doc/macports.conf portmgr/freebsd/Makefile portmgr/fedora/macports.spec src/Makefile src/macports1.0/macports_autoconf.tcl src/tclobjc1.0/Makefile src/port1.0/port_autoconf.tcl src/registry1.0/registry_autoconf.tcl src/programs/Makefile src/macports1.0/macports_fastload.tcl"
 
 
 cat >confcache <<\_ACEOF
@@ -12672,6 +12672,8 @@
     "doc/prefix.mtree") CONFIG_FILES="$CONFIG_FILES doc/prefix.mtree" ;;
     "doc/macosx.mtree") CONFIG_FILES="$CONFIG_FILES doc/macosx.mtree" ;;
     "doc/macports.conf") CONFIG_FILES="$CONFIG_FILES doc/macports.conf" ;;
+    "portmgr/freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES portmgr/freebsd/Makefile" ;;
+    "portmgr/fedora/macports.spec") CONFIG_FILES="$CONFIG_FILES portmgr/fedora/macports.spec" ;;
     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
     "src/macports1.0/macports_autoconf.tcl") CONFIG_FILES="$CONFIG_FILES src/macports1.0/macports_autoconf.tcl" ;;
     "src/tclobjc1.0/Makefile") CONFIG_FILES="$CONFIG_FILES src/tclobjc1.0/Makefile" ;;

Modified: trunk/base/configure.ac
===================================================================
--- trunk/base/configure.ac	2007-10-26 07:49:31 UTC (rev 30387)
+++ trunk/base/configure.ac	2007-10-26 11:21:57 UTC (rev 30388)
@@ -344,6 +344,8 @@
 	doc/prefix.mtree
 	doc/macosx.mtree
 	doc/macports.conf
+	portmgr/freebsd/Makefile
+	portmgr/fedora/macports.spec
 	src/Makefile
 	src/macports1.0/macports_autoconf.tcl
 	src/tclobjc1.0/Makefile


Property changes on: trunk/base/portmgr/fedora
___________________________________________________________________
Name: svn:ignore
   + macports.spec


Added: trunk/base/portmgr/fedora/REQUIREMENTS
===================================================================
--- trunk/base/portmgr/fedora/REQUIREMENTS	                        (rev 0)
+++ trunk/base/portmgr/fedora/REQUIREMENTS	2007-10-26 11:21:57 UTC (rev 30388)
@@ -0,0 +1,30 @@
+
+
+To install MacPorts on Fedora, you first need to build some requirements:
+
+- mtree
+
+    rpmbuild --rebuild mtree-2.7-5.src.rpm
+
+- gnustep-base (required)
+
+    rpmbuild --rebuild ffcall-1.10-1.2.src.rpm
+    rpmbuild --rebuild gnustep-make-2.0.1-1.src.rpm
+    rpmbuild --rebuild gnustep-base-1.14.0-1.src.rpm
+
+- gnustep-gui (optional)
+
+    rpmbuild --rebuild gnustep-back-0.12.0-1.src.rpm
+    rpmbuild --rebuild gnustep-gui-0.12.0-1.src.rpm
+    rpmbuild --rebuild gnustep-startup-0.18.1-1.src.rpm
+
+
+The other requirements should be available in the Fedora repositories...
+ 
+- tcl
+- tcl-thread
+- sqlite
+- openssl
+- rsync
+- curl
+

Added: trunk/base/portmgr/fedora/macports.spec.in
===================================================================
--- trunk/base/portmgr/fedora/macports.spec.in	                        (rev 0)
+++ trunk/base/portmgr/fedora/macports.spec.in	2007-10-26 11:21:57 UTC (rev 30388)
@@ -0,0 +1,100 @@
+Summary: MacPorts allows installing software on Mac OS X (and other platforms)
+Name: macports
+Version: @VER@
+Release: 0%{?dist}
+License: BSD
+Group: System Environment/Base
+URL: http://www.macports.org
+Source: http://svn.macosforge.org/repository/macports/distfiles/MacPorts/MacPorts-%{version}.tar.bz2
+Prefix: /opt/local
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+Requires: curl tcl rsync coreutils make
+BuildRequires: curl-devel tcl-devel tcl-thread sqlite-devel gcc-objc gnustep-base
+BuildRequires: mtree fakeroot /usr/GNUstep/System/Library/Makefiles/GNUstep.sh 
+BuildRequires: openssl-devel
+
+%description
+MacPorts is a system for compiling, installing, and managing free and
+open source software. A MacPorts "port" is a set of specifications
+contained in a Portfile that defines an application, its characteristics,
+and any files or special instructions required to install it, so MacPorts
+may automatically fetch, patch, compile, and install ported software.
+
+MacPorts may also be used to pre-compile ported software into binaries
+that may be installed on remote computers. Binaries of ported software
+may be installed very quickly since the steps required to install ports
+from source code have all been performed in advance.
+
+%prep
+%setup -n MacPorts-%{version}
+# avoid the whole upgrade and information procedure
+perl -pe 's/^install::/interactive:/' -i Makefile.in
+
+%define _prefix         %{prefix}
+%define _bindir         %{prefix}/bin
+%define _sysconfdir     %{prefix}/etc
+%define _datadir        %{prefix}/share
+%define _mandir         %{prefix}/share/man
+%define _infodir        %{prefix}/share/info
+%define _localstatedir  %{prefix}/var
+
+%build
+source /usr/GNUstep/System/Library/Makefiles/GNUstep.sh
+%configure \
+	--without-included-tclthread --without-included-sqlite3 \
+	--with-objc-runtime=GNU --with-objc-foundation=GNUstep
+make
+
+%install
+source /usr/GNUstep/System/Library/Makefiles/GNUstep.sh
+rm -rf $RPM_BUILD_ROOT
+make install \
+	DESTDIR="$RPM_BUILD_ROOT" INSTALL="fakeroot install"
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-, root, root)
+%doc LICENSE ChangeLog
+%{_bindir}/port
+%{_bindir}/portf
+%{_bindir}/portindex
+%{_bindir}/portmirror
+%config(noreplace) %{_sysconfdir}/macports
+%doc %{_mandir}/man1/port.1*
+%doc %{_mandir}/man5/macports.conf.5*
+%doc %{_mandir}/man7/portfile.7*
+%doc %{_mandir}/man7/portgroup.7*
+%doc %{_mandir}/man7/porthier.7*
+%doc %{_mandir}/man7/portstyle.7*
+%{_datadir}/macports
+%{_localstatedir}/macports
+/usr/share/tcl8.4/macports1.0
+#### mtree
+%dir %{prefix}
+%dir %{prefix}/bin
+%dir %{prefix}/etc
+%dir %{prefix}/include
+%dir %{prefix}/lib
+%dir %{prefix}/libexec
+     %{prefix}/man
+%dir %{prefix}/sbin
+%dir %{prefix}/share
+%dir %{prefix}/share/info
+%dir %{prefix}/share/man
+%dir %{prefix}/share/man/cat?
+%dir %{prefix}/share/man/man?
+%dir %{prefix}/share/nls
+%dir %{prefix}/share/nls/*
+#dir %{prefix}/skel
+#dir %{prefix}/src
+%dir %{prefix}/var
+
+%changelog
+* Sun Aug 12 2007 Anders F Bjorklund <afb at macports.org> - 1.5.0
+- Updated to version 1.5.0
+
+* Sun Aug 12 2007 Anders F Bjorklund <afb at macports.org> - 1.4.0
+- Initial Fedora packaging


Property changes on: trunk/base/portmgr/freebsd
___________________________________________________________________
Name: svn:ignore
   + Makefile


Added: trunk/base/portmgr/freebsd/Makefile.in
===================================================================
--- trunk/base/portmgr/freebsd/Makefile.in	                        (rev 0)
+++ trunk/base/portmgr/freebsd/Makefile.in	2007-10-26 11:21:57 UTC (rev 30388)
@@ -0,0 +1,81 @@
+# New ports collection makefile for:	MacPorts
+# Date created:		25 June 2007
+# Whom:			afb
+#
+# $FreeBSD$
+#
+
+PORTNAME=	macports
+PORTVERSION=	@VER@
+CATEGORIES=	sysutils
+MASTER_SITES=	http://svn.macosforge.org/repository/macports/distfiles/MacPorts/
+DISTNAME=	MacPorts-${PORTVERSION}
+
+MAINTAINER=	afb at macports.org
+COMMENT=	MacPorts allows installing software on Mac OS X (and other platforms)
+
+RUN_DEPENDS=	rsync:${PORTSDIR}/net/rsync \
+		ginstall:${PORTSDIR}/sysutils/coreutils \
+		gtar:${PORTSDIR}/archivers/gtar \
+		gmake:${PORTSDIR}/devel/gmake
+LIB_DEPENDS=	tcl84:${PORTSDIR}/lang/tcl84-thread \
+		curl:${PORTSDIR}/ftp/curl \
+		sqlite3:${PORTSDIR}/databases/sqlite3-threads
+BUILD_DEPENDS=	${LOCALBASE}/lib/thread2.6.5:${PORTSDIR}/devel/tclthread \
+		bash:${PORTSDIR}/shells/bash
+
+# X11 is only "recommended"
+
+USE_BZIP2=	yes
+USE_GMAKE=	yes
+#USE_XLIB=	yes
+USE_GNUSTEP=	yes
+
+USE_GNUSTEP_BASE=	yes
+USE_GNUSTEP_CONFIGURE=	yes
+USE_GNUSTEP_BUILD=	yes
+USE_GNUSTEP_INSTALL=	yes
+
+PREFIX?=	/opt/local
+MTREE_FILE=	${WRKSRC}/doc/prefix.mtree
+
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS+=--with-tcl=${LOCALBASE}/lib/tcl8.4 \
+		--with-tclinclude=${LOCALBASE}/include/tcl8.4 \
+		--without-included-tclthread --without-included-sqlite3 \
+		--with-objc-runtime=GNU --with-objc-foundation=GNUstep
+CONFIGURE_ENV=	RSYNC=${LOCALBASE}/bin/rsync \
+		TCLSH=${LOCALBASE}/bin/tclsh8.4-threads \
+		GNUTAR=${LOCALBASE}/bin/gtar \
+		GNUMAKE=${LOCALBASE}/bin/gmake \
+		OBJC="${CC}" OBJCFLAGS="${CFLAGS}"
+
+pre-configure:
+	@# foundation.m4 is somewhat bashist (MacPorts Bug #12252)
+	@${REINPLACE_CMD} -e 's|#! /bin/sh|#!/usr/bin/env bash|' ${WRKSRC}/configure
+post-configure:
+	@# Makefile only works with GNU make (MacPorts Bug #12247)
+	@${LN} -s Makefile ${WRKSRC}/GNUmakefile
+
+post-install:
+	@# move tcl from /usr/local, to /opt/local (for packaging)
+	${RM} -rf ${PREFIX}/share/macports/Tcl/macports1.0
+	${MKDIR} ${PREFIX}/share/macports/Tcl
+	test -L ${LOCALBASE}/lib/tcl8.4/macports1.0 || \
+	${MV} ${LOCALBASE}/lib/tcl8.4/macports1.0 \
+	      ${PREFIX}/share/macports/Tcl/macports1.0
+	test -L ${LOCALBASE}/lib/tcl8.4/macports1.0 || \
+	${LN} -s ${PREFIX}/share/macports/Tcl/macports1.0 \
+	         ${LOCALBASE}/lib/tcl8.4/macports1.0
+
+test: build
+	${GMAKE} -C ${WRKSRC} test
+
+# MacPorts mtree demands ${prefix}/share/man
+MANPREFIX=	${PREFIX}/share
+
+MAN1=		port.1
+MAN5=		macports.conf.5
+MAN7=		portfile.7 portgroup.7 porthier.7 portstyle.7
+
+.include <bsd.port.mk>

Added: trunk/base/portmgr/freebsd/pkg-descr
===================================================================
--- trunk/base/portmgr/freebsd/pkg-descr	                        (rev 0)
+++ trunk/base/portmgr/freebsd/pkg-descr	2007-10-26 11:21:57 UTC (rev 30388)
@@ -0,0 +1,12 @@
+MacPorts is a system for compiling, installing, and managing free and
+open source software. A MacPorts "port" is a set of specifications
+contained in a Portfile that defines an application, its characteristics,
+and any files or special instructions required to install it, so MacPorts
+may automatically fetch, patch, compile, and install ported software.
+
+MacPorts may also be used to pre-compile ported software into binaries
+that may be installed on remote computers. Binaries of ported software
+may be installed very quickly since the steps required to install ports
+from source code have all been performed in advance.
+
+WWW: http://www.macports.org/

Added: trunk/base/portmgr/freebsd/pkg-plist
===================================================================
--- trunk/base/portmgr/freebsd/pkg-plist	                        (rev 0)
+++ trunk/base/portmgr/freebsd/pkg-plist	2007-10-26 11:21:57 UTC (rev 30388)
@@ -0,0 +1,97 @@
+bin/port
+bin/portf
+bin/portindex
+bin/portmirror
+etc/macports/mp_version
+etc/macports/macports.conf
+etc/macports/prefix.mtree
+etc/macports/sources.conf
+etc/macports/variants.conf
+share/macports/Tcl/darwintrace1.0/darwintrace.so
+share/macports/Tcl/darwintrace1.0/pkgIndex.tcl
+share/macports/Tcl/macports1.0/MacPorts.so
+share/macports/Tcl/macports1.0/macports.tcl
+share/macports/Tcl/macports1.0/macports_autoconf.tcl
+share/macports/Tcl/macports1.0/macports_dlist.tcl
+share/macports/Tcl/macports1.0/macports_fastload.tcl
+share/macports/Tcl/macports1.0/macports_index.tcl
+share/macports/Tcl/macports1.0/macports_util.tcl
+share/macports/Tcl/macports1.0/pkgIndex.tcl
+share/macports/Tcl/package1.0/package.tcl
+share/macports/Tcl/package1.0/pkgIndex.tcl
+share/macports/Tcl/package1.0/portarchive.tcl
+share/macports/Tcl/package1.0/portdmg.tcl
+share/macports/Tcl/package1.0/portdpkg.tcl
+share/macports/Tcl/package1.0/portmpkg.tcl
+share/macports/Tcl/package1.0/portpkg.tcl
+share/macports/Tcl/package1.0/portrpm.tcl
+share/macports/Tcl/package1.0/portsrpm.tcl
+share/macports/Tcl/package1.0/portunarchive.tcl
+share/macports/Tcl/pextlib1.0/Pextlib.so
+share/macports/Tcl/pextlib1.0/pkgIndex.tcl
+share/macports/Tcl/port1.0/pkgIndex.tcl
+share/macports/Tcl/port1.0/port.tcl
+share/macports/Tcl/port1.0/port_autoconf.tcl
+share/macports/Tcl/port1.0/portactivate.tcl
+share/macports/Tcl/port1.0/portbuild.tcl
+share/macports/Tcl/port1.0/portchecksum.tcl
+share/macports/Tcl/port1.0/portclean.tcl
+share/macports/Tcl/port1.0/portconfigure.tcl
+share/macports/Tcl/port1.0/portdepends.tcl
+share/macports/Tcl/port1.0/portdestroot.tcl
+share/macports/Tcl/port1.0/portdistcheck.tcl
+share/macports/Tcl/port1.0/portextract.tcl
+share/macports/Tcl/port1.0/portfetch.tcl
+share/macports/Tcl/port1.0/portinstall.tcl
+share/macports/Tcl/port1.0/portlivecheck.tcl
+share/macports/Tcl/port1.0/portmain.tcl
+share/macports/Tcl/port1.0/portmirror.tcl
+share/macports/Tcl/port1.0/portpatch.tcl
+share/macports/Tcl/port1.0/portstartupitem.tcl
+share/macports/Tcl/port1.0/portsubmit.tcl
+share/macports/Tcl/port1.0/porttest.tcl
+share/macports/Tcl/port1.0/porttrace.tcl
+share/macports/Tcl/port1.0/portutil.tcl
+share/macports/Tcl/registry1.0/pkgIndex.tcl
+share/macports/Tcl/registry1.0/portimage.tcl
+share/macports/Tcl/registry1.0/portuninstall.tcl
+share/macports/Tcl/registry1.0/receipt_flat.tcl
+share/macports/Tcl/registry1.0/receipt_sqlite.tcl
+share/macports/Tcl/registry1.0/registry.tcl
+share/macports/Tcl/registry1.0/registry_autoconf.tcl
+share/macports/Tcl/tclobjc1.0/tclobjc.so
+share/macports/Tcl/tclobjc1.0/pkgIndex.tcl
+share/macports/resources/port1.0/fetch/mirror_sites.tcl
+share/macports/resources/port1.0/group/gnustep-1.0.tcl
+share/macports/resources/port1.0/group/perl5-1.0.tcl
+share/macports/resources/port1.0/group/python-1.0.tcl
+share/macports/resources/port1.0/group/python24-1.0.tcl
+share/macports/resources/port1.0/group/python25-1.0.tcl
+share/macports/resources/port1.0/group/ruby-1.0.tcl
+share/macports/resources/port1.0/group/xcode-1.0.tcl
+share/macports/resources/port1.0/group/zope-1.0.tcl
+share/macports/resources/port1.0/install/macosx.mtree
+share/macports/resources/port1.0/install/prefix.mtree
+share/macports/resources/port1.0/package/background.tiff
+var/macports/.tclpackage
+ at unexec /bin/rm -f %D/var/macports/.mprename
+ at dirrm var/macports/receipts
+ at dirrm var/macports/distfiles
+ at dirrm var/macports
+ at dirrm share/macports/resources/port1.0/package
+ at dirrm share/macports/resources/port1.0/install
+ at dirrm share/macports/resources/port1.0/group
+ at dirrm share/macports/resources/port1.0/fetch
+ at dirrm share/macports/resources/port1.0
+ at dirrm share/macports/resources
+ at dirrm share/macports/Tcl/tclobjc1.0
+ at dirrm share/macports/Tcl/registry1.0
+ at dirrm share/macports/Tcl/port1.0
+ at dirrm share/macports/Tcl/pextlib1.0
+ at dirrm share/macports/Tcl/package1.0
+ at dirrm share/macports/Tcl/macports1.0
+ at dirrm share/macports/Tcl/darwintrace1.0
+ at dirrm share/macports
+ at dirrm share/macports/Tcl
+ at dirrm etc/macports
+ at unexec test -L %%LOCALBASE%%/lib/tcl8.4/macports1.0 && /bin/rm %%LOCALBASE%%/lib/tcl8.4/macports1.0

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071026/43a0d1a4/attachment.html


More information about the macports-changes mailing list