Skip to content

Commit

Permalink
Use Onion to build PEAR packages of Predis.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nrk committed Dec 18, 2011
1 parent 4b9ab0b commit 104cd1e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
*.tgz
*.phar
phpunit.xml
package.xml
experiments/
36 changes: 36 additions & 0 deletions package.ini
Original file line number Diff line number Diff line change
@@ -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

3 comments on commit 104cd1e

@c9s
Copy link

@c9s c9s commented on 104cd1e Dec 18, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Onion project is still on its way. if you encountered any kind of issue or problems, please report to us, we will fix it as soon as possible. :-)

@nrk
Copy link
Contributor Author

@nrk nrk commented on 104cd1e Dec 18, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's been super-easy to get up and running and I haven't encountered any real problems. I'd probably suggest to state clearly in the docs that double quotes for the username in the author string must be escaped in the .ini file or it won't be parsed as expected. Pretty minor stuff anyway, Onion looks good already :-)

@c9s
Copy link

@c9s c9s commented on 104cd1e Dec 18, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

I will document it later. :-)

Please sign in to comment.