Browse Source

Use Onion to build PEAR packages of Predis.

Since Pearhub is currently broken (unfortunately the project does not seem to
be actively mantained anymore) but we still want to have PEAR packages for our
library, we need to automate the creation of a package.xml definition file to
build the actual packages that will be uploaded on a self-hosted PEAR channel.

Onion, while still in its alpha stage right now, works perfectly fine for our
needs and its own package.ini file looks simple enough to edit and maintain.

See http://c9s.github.com/Onion for more details about Onion and thank @c9s
for making it available.
Daniele Alessandri 13 years ago
parent
commit
104cd1eae7
2 changed files with 39 additions and 0 deletions
  1. 3 0
      .gitignore
  2. 36 0
      package.ini

+ 3 - 0
.gitignore

@@ -1,2 +1,5 @@
+*.tgz
+*.phar
 phpunit.xml
+package.xml
 experiments/

+ 36 - 0
package.ini

@@ -0,0 +1,36 @@
+; This file is meant to be used with Onion http://c9s.github.com/Onion/
+; In order to be able to build a PEAR package of Predis, open a new terminal
+; session and follow these two easy steps:
+;
+; $ wget https://github.com/c9s/Onion/raw/master/onion.phar
+; $ /usr/bin/env php onion.phar build
+;
+
+[package]
+name        = "Predis"
+desc        = "Flexible and feature-complete PHP client library for Redis"
+homepage    = "http://github.com/nrk/predis"
+license     = "MIT"
+version     = "0.7.1"
+stability   = "beta"
+channel     = "pear.nrk.io"
+
+author      = "Daniele Alessandri \"nrk\" <suppakilla@gmail.com>"
+
+[required]
+php = ">= 5.3.2"
+pearinstaller = "1.4.1"
+
+[roles]
+*.md = doc
+lib = php
+
+[optional phpiredis]
+hint = "Add support for faster protocol handling with phpiredis"
+extensions[] = socket
+extensions[] = phpiredis
+
+[optional webdis]
+hint = "Add support for Webdis"
+extensions[] = curl
+extensions[] = phpiredis