Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Unified Diff: third_party/JSON/get_and_build_json_pm.sh

Issue 15736030: Add JSON.pm to third_party (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/JSON/get_and_build_json_pm.sh
diff --git a/third_party/JSON/get_and_build_json_pm.sh b/third_party/JSON/get_and_build_json_pm.sh
new file mode 100755
index 0000000000000000000000000000000000000000..685109462b889790a76d41b006cbcd2d449f5556
--- /dev/null
+++ b/third_party/JSON/get_and_build_json_pm.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Download and build JSON.pm
+# Homepage:
+# http://search.cpan.org/~makamaka/JSON-2.58/lib/JSON.pm
+SRC_URL='http://www.cpan.org/authors/id/M/MA/MAKAMAKA/JSON-2.58.tar.gz'
+FILENAME="$(basename $SRC_URL)"
+BUILD_DIR='JSON-2.58'
+INSTALL_DIR="$(pwd)/out"
+curl --remote-name "$SRC_URL"
+tar xvzf "$FILENAME"
+cd "$BUILD_DIR"
+perl Makefile.PL INSTALL_BASE="$INSTALL_DIR"
+make
+make test
+make install

Powered by Google App Engine
This is Rietveld 408576698