OSDN Git Service

- added Ethna optional package build environment and howto doc.
authormumumu-org <mumumu-org@2ef88817-412d-0410-a32c-8029a115e976>
Mon, 28 Apr 2008 08:59:14 +0000 (08:59 +0000)
committermumumu-org <mumumu-org@2ef88817-412d-0410-a32c-8029a115e976>
Mon, 28 Apr 2008 08:59:14 +0000 (08:59 +0000)
misc/optional_package/OPTIONAL_PACKAGE_HOWTO [new file with mode: 0644]
misc/optional_package/Smarty/build/build [new file with mode: 0755]
misc/optional_package/Smarty/build/build.bat [new file with mode: 0644]
misc/optional_package/Smarty/build/build.conf [new file with mode: 0644]
misc/optional_package/simpletest/build/build [new file with mode: 0755]
misc/optional_package/simpletest/build/build.bat [new file with mode: 0644]
misc/optional_package/simpletest/build/build.conf [new file with mode: 0644]

diff --git a/misc/optional_package/OPTIONAL_PACKAGE_HOWTO b/misc/optional_package/OPTIONAL_PACKAGE_HOWTO
new file mode 100644 (file)
index 0000000..23d8c3c
--- /dev/null
@@ -0,0 +1,45 @@
+ここでは、Ethnaに依存する simpletest 及び、Smartyのパッケージ作成方法について
+説明します。
+
+1. PEAR_PackageProjectorをインストール
+- http://servlet.sakura.ne.jp/wiki/index.php?PEAR_PackageProjector の手順に従ってインストールする
+-- Linux で実行している場合、PEAR/PackageProjector/Derictory.php を以下のように修正しないと失敗するかもしれません。
+-- 310行目を以下のように修正
+
+         if (self::isAbsolutePath($path)) {
+             return $path;
+         }
+-        $tmp = (OS_WINDOWS) ? getcwd() :$_ENV['PWD'];
++        $tmp = (!OS_WINDOWS) ? getcwd() :$_ENV['PWD'];
+         return $tmp .DIRECTORY_SEPARATOR.$path;
+     }
+
+
+2. PEAR_PackageProjector のコマンド pearproj のパスを設定
+- Smarty/build/build[.bat] を開いて、pearproj コマンドを、
+  インストールされた pearproj コマンドの絶対パスに置き換える。
+- simpletest/build/build[.bat] も同様にする
+
+3. Smarty, simpletest のパッケージを src ディレクトリに配置
+- Smarty/src ディレクトリに Smarty-x.x.x.tar.gz をダウンロードし、「展開しておく」
+-- 展開しないとパッケージ作成時にエラーになります!
+- simpletest/src ディレクトリに simpletest-x.x.x.tar.gz をダウンロードし、「展開しておく」
+-- 展開しないとパッケージ作成時にエラーになります!
+-- 展開後、simpletest/src/simpletest ディレクトリができるので、simpletest/src/simpletest-x.x.x にリネームする
+
+4. build.conf の編集
+- Smarty/build/build.conf のバージョン番号をダウンロードしたSmartyのバージョン番号に置き換える
+- simpletest/build/build.conf も同様にする
+
+5. パッケージを生成
+- 以下のコマンドを実行すれば、Smarty と simpletest の release ディレクトリに
+  PEARパッケージが作成されます。
+
+-- Smartyの場合
+--- $ cd Smarty/build
+--- $ ./build
+
+-- simpletest の場合
+--- $cd simpletest/build
+--- $ ./build
diff --git a/misc/optional_package/Smarty/build/build b/misc/optional_package/Smarty/build/build
new file mode 100755 (executable)
index 0000000..c0d8d44
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+pearproj -t --configure ./build.conf --make -p ./
diff --git a/misc/optional_package/Smarty/build/build.bat b/misc/optional_package/Smarty/build/build.bat
new file mode 100644 (file)
index 0000000..cceeab8
--- /dev/null
@@ -0,0 +1 @@
+pearproj -t --configure ./build.conf --make -p ./
\ No newline at end of file
diff --git a/misc/optional_package/Smarty/build/build.conf b/misc/optional_package/Smarty/build/build.conf
new file mode 100644 (file)
index 0000000..a6467a1
--- /dev/null
@@ -0,0 +1,79 @@
+;VERSION [2.6.19]
+
+[project]
+src_dir = ../src/Smarty-2.6.19/libs
+release_dir = ../release
+
+[package]
+package_name = Smarty
+package_type = php
+baseinstalldir = /Smarty
+channel = pear.ethna.jp 
+summary = PHP Template Engine
+;description = Most Popular Template Engine
+notes = PEAR Style Package
+;summary_file = <filepath>
+description_file = ../src/Smarty-2.6.19/README
+;notes_file = <filepath>
+
+[role]
+;; role value is <php|data|doc|test|script|src>
+;sh = script
+debug.tpl = php
+BUGS = doc
+COPYING.lib = doc
+ChangeLog = doc
+FAQ = doc
+NEWS = doc
+QUICK_START = doc
+README = doc
+RELEASE_NOTES = doc
+TODO = doc
+
+[version]
+release_ver = 2.6.19
+release_stab = stable
+api_ver = 2.6.19
+api_stab = stable
+php_min = 4.0.6
+pear_min = 1.4.0
+
+[license]
+name = LGPL
+uri = http://www.gnu.org/licenses/lgpl.html
+
+[maintainer://monte]
+name = Monte Ohrt
+email = monte@ohrt.com
+role = lead
+
+[maintainer://andrei]
+name = Andrei Zmievski
+email = andrei@php.net
+role = lead
+
+[maintainer://tsuruoka]
+name = TSURUOKA Naoya
+email = tsuruoka@labs.cybozu.co.jp
+role = helper
+
+;[file://<filepath>]
+;commandscript = command
+;ignore = 1
+;platform = windows
+;install = renamefile
+;; role value is <php|data|doc|test|script|src>
+;role = script
+
+;[dep://<packagename>]
+;; type: <required|optional>
+;type = optional
+;; channel: pear.php.net or __uri or etc...
+;channel = pear.php.net
+;min = 0
+;max = 0
+;recommended = 0
+;exclude = 0
+;providesextension = 0
+;nodefault = 0
+
diff --git a/misc/optional_package/simpletest/build/build b/misc/optional_package/simpletest/build/build
new file mode 100755 (executable)
index 0000000..c0d8d44
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+pearproj -t --configure ./build.conf --make -p ./
diff --git a/misc/optional_package/simpletest/build/build.bat b/misc/optional_package/simpletest/build/build.bat
new file mode 100644 (file)
index 0000000..fe5af31
--- /dev/null
@@ -0,0 +1 @@
+pearproj -t --configure ./build.conf --make -p ./
diff --git a/misc/optional_package/simpletest/build/build.conf b/misc/optional_package/simpletest/build/build.conf
new file mode 100644 (file)
index 0000000..ce22703
--- /dev/null
@@ -0,0 +1,74 @@
+;VERSION [1.0.1]
+
+[project]
+src_dir = ../src/simpletest-1.0.1
+release_dir = ../release
+
+[package]
+package_name = simpletest
+package_type = php
+baseinstalldir = /simpletest
+channel = pear.ethna.jp 
+summary = Unit testing, mock objects and web testing framework for PHP built around test cases. 
+;description = 
+notes = PEAR Style Package
+;summary_file = <filepath>
+description_file = ../src/simpletest-1.0.1/README
+;notes_file = <filepath>
+
+[role]
+;; role value is <php|data|doc|test|script|src>
+;sh = script
+debug.tpl = php
+BUGS = doc
+COPYING.lib = doc
+ChangeLog = doc
+FAQ = doc
+NEWS = doc
+QUICK_START = doc
+README = doc
+RELEASE_NOTES = doc
+TODO = doc
+
+[version]
+release_ver = 1.0.1
+release_stab = stable
+api_ver = 1.0.1
+api_stab = stable
+php_min = 4.0.6
+pear_min = 1.4.0
+
+[license]
+name = LGPL
+uri = http://www.gnu.org/licenses/lgpl.html
+
+[maintainer://lastcraft]
+name = lastcraft
+email = lastcraft at users.sourceforge.net
+role = lead
+
+[maintainer://ha1t]
+name = halt feits
+email = halt.feits at gmail.com
+role = helper
+
+;[file://<filepath>]
+;commandscript = command
+;ignore = 1
+;platform = windows
+;install = renamefile
+;; role value is <php|data|doc|test|script|src>
+;role = script
+
+;[dep://<packagename>]
+;; type: <required|optional>
+;type = optional
+;; channel: pear.php.net or __uri or etc...
+;channel = pear.php.net
+;min = 0
+;max = 0
+;recommended = 0
+;exclude = 0
+;providesextension = 0
+;nodefault = 0
+