Last active
February 27, 2016 11:21
-
-
Save uetchy/e752ff8f8315a763b7b8 to your computer and use it in GitHub Desktop.
Revisions
-
uetchy revised this gist
Feb 27, 2016 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,6 @@ class Platformio < Formula desc "An open source ecosystem for IoT development" homepage "http://platformio.org" url "https://pypi.python.org/packages/source/p/platformio/platformio-2.8.4.tar.gz" sha256 "5728bee3281a10e33f4727da0cdb3f7b1f333fd415fdbbde6ad1591a963344b5" -
uetchy revised this gist
Feb 27, 2016 . 1 changed file with 12 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ class Platformio < Formula desc "An open source ecosystem for IoT development" homepage "http://platformio.org" version "2.8.4" url "https://pypi.python.org/packages/source/p/platformio/platformio-2.8.4.tar.gz" sha256 "5728bee3281a10e33f4727da0cdb3f7b1f333fd415fdbbde6ad1591a963344b5" depends_on :python if MacOS.version <= :snow_leopard @@ -18,8 +18,8 @@ class Platformio < Formula end resource "colorama" do url "https://pypi.python.org/packages/source/c/colorama/colorama-0.3.6.tar.gz" sha256 "ec9efcccb086a1d727876384f94ee6358d2f3f096688c1ba18b0f318f2b453b5" end resource "lockfile" do @@ -28,24 +28,21 @@ class Platformio < Formula end resource "pyserial" do url "https://pypi.python.org/packages/source/p/pyserial/pyserial-3.0.1.tar.gz" sha256 "969cb6405d1d87f8960cf9c10f597ae58f85da2fb9769dba96f4aeeaade54656" end resource "requests" do url "https://pypi.python.org/packages/source/r/requests/requests-2.9.1.tar.gz" sha256 "c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f" end def install ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages" %w[bottle click colorama lockfile pyserial requests].each do |r| resource(r).stage do system "python", *Language::Python.setup_install_args(libexec/"vendor") end end ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages" @@ -56,6 +53,6 @@ def install end test do system "platformio" end end -
uetchy revised this gist
Dec 30, 2015 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -43,16 +43,16 @@ class Platformio < Formula end def install ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages" resources.each do |r| r.stage { system "python", *Language::Python.setup_install_args(libexec/"vendor") } end ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages" system "python", *Language::Python.setup_install_args(libexec) bin.install Dir[libexec/"bin/*"] bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"]) end test do -
uetchy revised this gist
Dec 30, 2015 . No changes.There are no files selected for viewing
-
uetchy created this gist
Dec 30, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,61 @@ class Platformio < Formula desc "An open source ecosystem for IoT development" homepage "http://platformio.org" url "https://github.com/platformio/platformio/archive/v2.6.3.tar.gz" version "2.6.3" sha256 "755b52031bc236a33cbe14c3bbb748401dd6830df697da3c821a1a11d5a9b399" depends_on :python if MacOS.version <= :snow_leopard resource "bottle" do url "https://pypi.python.org/packages/source/b/bottle/bottle-0.12.9.tar.gz" sha256 "fe0a24b59385596d02df7ae7845fe7d7135eea73799d03348aeb9f3771500051" end resource "click" do url "https://pypi.python.org/packages/source/c/click/click-5.1.tar.gz" sha256 "678c98275431fad324275dec63791e4a17558b40e5a110e20a82866139a85a5a" end resource "colorama" do url "https://pypi.python.org/packages/source/c/colorama/colorama-0.3.5.tar.gz" sha256 "0880a751afcb111881b437a846a93e540c7e1346030ba7bd7fda03434371fbc3" end resource "lockfile" do url "https://pypi.python.org/packages/source/l/lockfile/lockfile-0.12.2.tar.gz" sha256 "6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799" end resource "pyserial" do url "https://pypi.python.org/packages/source/p/pyserial/pyserial-2.7.tar.gz" sha256 "3542ec0838793e61d6224e27ff05e8ce4ba5a5c5cc4ec5c6a3e8d49247985477" end resource "requests" do url "https://pypi.python.org/packages/source/r/requests/requests-2.9.1.tar.gz" sha256 "c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f" end resource "SCons" do url "https://pypi.python.org/packages/source/S/SCons/scons-2.4.1.tar.gz" sha256 "774f394044018d7e3010aefd84d09b245553da1ada138f5bb6b139aea0771b63" end def install ENV["PYTHONPATH"] = libexec/"lib/python2.7/site-packages" ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages" resources.each do |r| r.stage { system "python", *Language::Python.setup_install_args(libexec/"vendor") } end system "python", *Language::Python.setup_install_args(libexec) bin.install Dir[libexec/"bin/*"] bin.env_script_all_files(libexec/"bin/*", :PYTHONPATH => ENV["PYTHONPATH"]) end test do system "#{bin}/platformio" end end