[Xquartz-changes] [566] trunk/pkg

source_changes at macosforge.org source_changes at macosforge.org
Sun Jul 24 19:20:19 PDT 2011


Revision: 566
          http://trac.macosforge.org/projects/xquartz/changeset/566
Author:   jeremyhu at freedesktop.org
Date:     2011-07-24 19:20:19 -0700 (Sun, 24 Jul 2011)
Log Message:
-----------
Make pmdoc a template

Added Paths:
-----------
    trunk/pkg/XQuartz.pmdoc/
    trunk/pkg/XQuartz.pmdoc/01x.xml
    trunk/pkg/XQuartz.pmdoc/index.xml
    trunk/pkg/mkpmdoc.sh

Removed Paths:
-------------
    trunk/pkg/X11.pmdoc/

Added: trunk/pkg/XQuartz.pmdoc/01x.xml
===================================================================
--- trunk/pkg/XQuartz.pmdoc/01x.xml	                        (rev 0)
+++ trunk/pkg/XQuartz.pmdoc/01x.xml	2011-07-25 02:20:19 UTC (rev 566)
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<pkgref spec="1.12" uuid="7EAEB797-6BF7-4861-8F15-3175B9D7BF46">
+  <config>
+    <identifier>org.macosforge.xquartz.pkg</identifier>
+    <version>@@VERSION@@</version>
+    <description/>
+    <post-install type="none"/>
+    <requireAuthorization/>
+    <installFrom>@@PKG_DIR@@/X11</installFrom>
+    <installTo>/</installTo>
+    <flags>
+      <followSymbolicLinks/>
+    </flags>
+    <packageStore type="internal"/>
+    <mod>version</mod>
+    <mod>identifier</mod>
+    <mod>parent</mod>
+  </config>
+  <scripts>
+    <postinstall mod="true">@@PKG_DIR@@/resources/scripts/postinst_sl.sh</postinstall>
+    <scripts-dir mod="true">@@PKG_DIR@@/resources/scripts</scripts-dir>
+  </scripts>
+  <contents>
+    <component id="org.macosforge.xquartz.X11" path="@@PKG_DIR@@/X11/Applications/Utilities/XQuartz.app" isRelocatable="true" isDowngradeable="true">
+      <locator-info>
+        <token title="pkmk-token-23">
+          <search-rule>
+            <combo identifier="org.macosforge.xquartz.X11" default-path="/Applications/Utilities/XQuartz.app"/>
+          </search-rule>
+        </token>
+      </locator-info>
+      <component id="org.andymatuschak.Sparkle" path="@@PKG_DIR@/X11/Applications/Utilities/XQuartz.app/Contents/Frameworks/Sparkle.framework" isDowngradeable="true">
+        <mod>isDowngradeable</mod>
+      </component>
+      <mod>isDowngradeable</mod>
+    </component>
+    <filter>/CVS$</filter>
+    <filter>/\.svn$</filter>
+    <filter>/\.cvsignore$</filter>
+    <filter>/\.cvspass$</filter>
+    <filter>/\.DS_Store$</filter>
+  </contents>
+</pkgref>

Added: trunk/pkg/XQuartz.pmdoc/index.xml
===================================================================
--- trunk/pkg/XQuartz.pmdoc/index.xml	                        (rev 0)
+++ trunk/pkg/XQuartz.pmdoc/index.xml	2011-07-25 02:20:19 UTC (rev 566)
@@ -0,0 +1,50 @@
+<?xml version="1.0"?>
+<pkmkdoc spec="1.12">
+  <properties>
+    <title>XQuartz @@VERSION_TXT@@</title>
+    <build>@@PKG_DIR@@/XQuartz-@@VERSION_TXT@@.pkg</build>
+    <organization>org.macosforge.xquartz</organization>
+    <userSees ui="easy"/>
+    <min-target os="3"/>
+    <domain system="true"/>
+  </properties>
+  <distribution>
+    <versions min-spec="1.000000"/>
+    <scripts/>
+  </distribution>
+  <description>This is a community supported version of X11 for Mac OSX Snow Leopard.  Please visit http://xquartz.macosforge.org for more information.</description>
+  <contents>
+    <choice title="X11" id="x11" starts_selected="true" starts_enabled="true" starts_hidden="false">
+      <pkgref id="org.macosforge.xquartz.pkg"/>
+    </choice>
+  </contents>
+  <resources bg-scale="proportional" bg-align="topleft">
+    <locale lang="en">
+      <resource mod="true" type="license">@@PKG_DIR@@/LICENSE.txt</resource>
+      <resource mod="true" type="readme">@@PKG_DIR@@/README.@@VERSION_TXT_SHORT@@.txt</resource>
+      <resource mod="true" type="welcome">@@PKG_DIR@@/INTRODUCTION-SL.txt</resource>
+      <resource mime-type="text/rtf" kind="embedded" type="conclusion"><![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf1110\cocoasubrtf910
+{\fonttbl\f0\fnil\fcharset0 LucidaGrande;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural
+
+\f0\fs26 \cf0 Installation is complete.  If this is your first time installing XQuartz, you may want to log out and log back in to make it your default X11 server.}]]></resource>
+    </locale>
+  </resources>
+  <requirements>
+    <requirement id="sosv" operator="ge" value="'10.6.3'">
+      <message-title>OS-X 10.6.3</message-title>
+      <message>This update requires you to first update your system to OS-X 10.6.3</message>
+    </requirement>
+    <requirement id="tosv" operator="ge" value="'10.6.3'">
+      <message>This update requires you to first update your system to OS-X 10.6.3</message>
+    </requirement>
+  </requirements>
+  <flags/>
+  <item type="file">01x.xml</item>
+  <mod>properties.title</mod>
+  <mod>properties.customizeOption</mod>
+  <mod>description</mod>
+  <mod>properties.anywhereDomain</mod>
+  <mod>properties.systemDomain</mod>
+</pkmkdoc>

Added: trunk/pkg/mkpmdoc.sh
===================================================================
--- trunk/pkg/mkpmdoc.sh	                        (rev 0)
+++ trunk/pkg/mkpmdoc.sh	2011-07-25 02:20:19 UTC (rev 566)
@@ -0,0 +1,22 @@
+PKG_DIR=${HOME}/src/freedesktop/pkg
+ROOT=${HOME}/src/freedesktop/pkg/X11
+SCRIPTS_DIR=${HOME}/src/freedesktop/pkg
+VERSION_TXT=`defaults read ${ROOT}/Applications/Utilities/XQuartz.app/Contents/Info.plist CFBundleShortVersionString`
+VERSION_TXT_SHORT=${VERSION_TXT%_*}
+VERSION=`defaults read ${ROOT}/Applications/Utilities/XQuartz.app/Contents/Info.plist CFBundleVersion`
+
+if [[ -z "${VERSION}" || -z "${VERSION_TXT}" ]] ; then
+	echo "Could not determine version information from ${ROOT}/Applications/Utilities/XQuartz.app/Contents/Info.plist"
+	exit 1
+fi
+
+gcp -a XQuartz.pmdoc XQuartz-${VERSION_TXT_SHORT}.pmdoc
+
+XML_FILES=XQuartz-${VERSION_TXT_SHORT}.pmdoc/*xml
+
+gsed -i "s:@@VERSION_TXT@@:${VERSION_TXT}:g" ${XML_FILES}
+gsed -i "s:@@VERSION_TXT_SHORT@@:${VERSION_TXT_SHORT}:g" ${XML_FILES}
+gsed -i "s:@@VERSION@@:${VERSION}:g" ${XML_FILES}
+gsed -i "s:@@PKG_DIR@@:${PKG_DIR}:g" ${XML_FILES}
+gsed -i "s:@@ROOT@@:${ROOT}:g" ${XML_FILES}
+gsed -i "s:@@SCRIPTS_DIR@@:${SCRIPTS_DIR}:g" ${XML_FILES}


Property changes on: trunk/pkg/mkpmdoc.sh
___________________________________________________________________
Added: svn:executable
   + *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20110724/165f9d52/attachment.html>


More information about the Xquartz-changes mailing list