Skip to content

Loading…

New Formula: dwatch #11975

Closed
wants to merge 1 commit into from

2 participants

@zenspider

Nobody active on IRC to review before submission. Sorry. Luckily it's a stupid simple formula.

@mistydemeo mistydemeo commented on the diff
Library/Formula/dwatch.rb
@@ -0,0 +1,18 @@
+require 'formula'
+
+class Dwatch < Formula
+ homepage 'http://siag.nu/dwatch/'
+ url 'http://siag.nu/pub/dwatch/dwatch-0.1.1.tar.gz'
+ md5 '25c06240cb5ab8126badc8a78dcd2b79'
+
+ def install
+ bin.mkpath

Mind adding a comment to note why these lines are necessary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@mistydemeo mistydemeo commented on an outdated diff
Library/Formula/dwatch.rb
((1 lines not shown))
+require 'formula'
+
+class Dwatch < Formula
+ homepage 'http://siag.nu/dwatch/'
+ url 'http://siag.nu/pub/dwatch/dwatch-0.1.1.tar.gz'
+ md5 '25c06240cb5ab8126badc8a78dcd2b79'
+
+ def install
+ bin.mkpath
+ man1.mkpath
+ system "make install CC=#{ENV.cc} PREFIX=#{prefix} MANDIR=#{man}"
+ etc.install "dwatch.conf"
+ end
+
+ def test
+ system "false"

;) This should be changed to an actual test, or removed if there isn't something noninteractive that's testable. For instance, many programs just do foo --help, which typically returns true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@mistydemeo mistydemeo added a commit that closed this pull request
@zenspider zenspider New Formula: dwatch
Closes #11975.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
58189c8
@mistydemeo mistydemeo closed this in 58189c8
@erikg erikg referenced this pull request
Commit has since been removed from the repository and is no longer available.
@rohansingh rohansingh added a commit to rohansingh/homebrew that referenced this pull request
@zenspider zenspider New Formula: dwatch
Closes #11975.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
aaf6783
@zhangcheng zhangcheng referenced this pull request
Commit has since been removed from the repository and is no longer available.
@Sharpie Sharpie pushed a commit to Sharpie/homebrew that referenced this pull request
@zenspider zenspider New Formula: dwatch
Closes #11975.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
72d76e3
@snakeyroc3 snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this pull request
@zenspider zenspider New Formula: dwatch
Closes #11975.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
8c147af
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 30, 2012
  1. @zenspider

    New Formula: dwatch

    zenspider committed
    Reviewed by mistym
This page is out of date. Refresh to see the latest.
Showing with 19 additions and 0 deletions.
  1. +19 −0 Library/Formula/dwatch.rb
View
19 Library/Formula/dwatch.rb
@@ -0,0 +1,19 @@
+require 'formula'
+
+class Dwatch < Formula
+ homepage 'http://siag.nu/dwatch/'
+ url 'http://siag.nu/pub/dwatch/dwatch-0.1.1.tar.gz'
+ md5 '25c06240cb5ab8126badc8a78dcd2b79'
+
+ def install
+ bin.mkpath # Makefile uses cp, not install

Mind adding a comment to note why these lines are necessary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ man1.mkpath # ditto
+
+ system "make install CC=#{ENV.cc} PREFIX=#{prefix} MANDIR=#{man} ETCDIR=#{etc}"
+ etc.install "dwatch.conf"
+ end
+
+ def test
+ system "dwatch -h" # not that it HAS -h. bitches, but exits 0
+ end
+end
Something went wrong with that request. Please try again.