summaryrefslogtreecommitdiff
path: root/homebrew/xmlto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/xmlto')
-rw-r--r--homebrew/xmlto/.beer50
-rw-r--r--homebrew/xmlto/.make.sh-auto6
-rw-r--r--homebrew/xmlto/_metadata/description1
-rw-r--r--homebrew/xmlto/_metadata/homepage1
-rw-r--r--homebrew/xmlto/_metadata/name1
-rw-r--r--homebrew/xmlto/_metadata/version1
-rwxr-xr-xhomebrew/xmlto/download.sh1
-rwxr-xr-xhomebrew/xmlto/patches.sh14
8 files changed, 75 insertions, 0 deletions
diff --git a/homebrew/xmlto/.beer b/homebrew/xmlto/.beer
new file mode 100644
index 000000000..386916bab
--- /dev/null
+++ b/homebrew/xmlto/.beer
@@ -0,0 +1,50 @@
+{
+ "name": "Xmlto",
+ "description": "Convert XML to another format (based on XSL or other tools)",
+ "url": "https://releases.pagure.org/xmlto/xmlto-0.0.28.tar.bz2",
+ "mirror": null,
+ "homepage": "https://pagure.io/xmlto/",
+ "depends": [
+ {
+ "depend": "docbook",
+ "build-depend": false
+ },
+ {
+ "depend": "docbook-xsl",
+ "build-depend": false
+ },
+ {
+ "depend": "gnu-getopt",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "--- xmlto-0.0.25/xmlto.in.orig\n",
+ "+++ xmlto-0.0.25/xmlto.in\n",
+ "@@ -209,7 +209,7 @@\n",
+ " export VERBOSE\n",
+ " \n",
+ " # Disable network entities\n",
+ "-XSLTOPTS=\"$XSLTOPTS --nonet\"\n",
+ "+#XSLTOPTS=\"$XSLTOPTS --nonet\"\n",
+ " \n",
+ " # The names parameter for the XSLT stylesheet\n",
+ " XSLTPARAMS=\"\"\n"
+ ]
+ }
+ ],
+ "install": [
+ "ENV[\"GETOPT\"] = Formula[\"gnu-getopt\"].opt_bin/\"getopt\"",
+ "ENV[\"XML_CATALOG_FILES\"] = \"#{etc}/xml/catalog\"",
+ "ENV.deparallelize",
+ "system \"./configure\", \"--disable-dependency-tracking\", \"--prefix=#{prefix}\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "0.0.28",
+ "file": "xmlto.rb"
+} \ No newline at end of file
diff --git a/homebrew/xmlto/.make.sh-auto b/homebrew/xmlto/.make.sh-auto
new file mode 100644
index 000000000..614cfc7c1
--- /dev/null
+++ b/homebrew/xmlto/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+ENV["GETOPT"] = Formula["gnu-getopt"].opt_bin/"getopt"
+ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
+ENV.deparallelize
+pkg:configure --disable-dependency-tracking
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/xmlto/_metadata/description b/homebrew/xmlto/_metadata/description
new file mode 100644
index 000000000..8e73c41b2
--- /dev/null
+++ b/homebrew/xmlto/_metadata/description
@@ -0,0 +1 @@
+Convert XML to another format (based on XSL or other tools)
diff --git a/homebrew/xmlto/_metadata/homepage b/homebrew/xmlto/_metadata/homepage
new file mode 100644
index 000000000..1b3204b20
--- /dev/null
+++ b/homebrew/xmlto/_metadata/homepage
@@ -0,0 +1 @@
+https://pagure.io/xmlto/
diff --git a/homebrew/xmlto/_metadata/name b/homebrew/xmlto/_metadata/name
new file mode 100644
index 000000000..42a8b893f
--- /dev/null
+++ b/homebrew/xmlto/_metadata/name
@@ -0,0 +1 @@
+Xmlto
diff --git a/homebrew/xmlto/_metadata/version b/homebrew/xmlto/_metadata/version
new file mode 100644
index 000000000..1fe695856
--- /dev/null
+++ b/homebrew/xmlto/_metadata/version
@@ -0,0 +1 @@
+0.0.28
diff --git a/homebrew/xmlto/download.sh b/homebrew/xmlto/download.sh
new file mode 100755
index 000000000..9275252f4
--- /dev/null
+++ b/homebrew/xmlto/download.sh
@@ -0,0 +1 @@
+wget https://releases.pagure.org/xmlto/xmlto-0.0.28.tar.bz2 \ No newline at end of file
diff --git a/homebrew/xmlto/patches.sh b/homebrew/xmlto/patches.sh
new file mode 100755
index 000000000..96dc84a0e
--- /dev/null
+++ b/homebrew/xmlto/patches.sh
@@ -0,0 +1,14 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+--- xmlto-0.0.25/xmlto.in.orig
++++ xmlto-0.0.25/xmlto.in
+@@ -209,7 +209,7 @@
+ export VERBOSE
+
+ # Disable network entities
+-XSLTOPTS="$XSLTOPTS --nonet"
++#XSLTOPTS="$XSLTOPTS --nonet"
+
+ # The names parameter for the XSLT stylesheet
+ XSLTPARAMS=""
+EOF