Skip to content

Commit cd2d6cc

Browse files
committed
xcalc: new formula
Closes #848. Signed-off-by: Maxim Belkin <maxim.belkin@gmail.com>
1 parent 9a8b38a commit cd2d6cc

2 files changed

Lines changed: 43 additions & 10 deletions

File tree

‎Formula/xcalc.rb‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
class Xcalc < Formula
2+
desc "Scientific calculator for X"
3+
homepage "https://www.x.org/"
4+
url "https://www.x.org/pub/individual/app/xcalc-1.1.3.tar.xz"
5+
sha256 "86e157b6174678675a4a912995dccd0ff4e2ce32b01bdd6f91bfe93333324980"
6+
license "MIT"
7+
8+
depends_on "pkg-config" => :build
9+
depends_on "util-macros" => :build
10+
depends_on "libx11"
11+
depends_on "libxaw"
12+
depends_on "libxt"
13+
14+
def install
15+
args = %W[
16+
--prefix=#{prefix}
17+
--sysconfdir=#{etc}
18+
--localstatedir=#{var}
19+
--disable-dependency-tracking
20+
--disable-silent-rules
21+
]
22+
23+
system "./configure", *args
24+
system "make"
25+
system "make", "install"
26+
end
27+
28+
test do
29+
assert_predicate bin/"xcalc", :executable?
30+
end
31+
end

‎README.md‎

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,21 @@ All classic X11 bitmap and outline fonts, plus encodings and the `xorg-fonts` me
7070
* font-misc-cyrillic
7171
* font-misc-ethiopic
7272

73-
### X.org Utilities (27)
73+
### X.org Utilities (31)
7474

7575
Display, keyboard, and window management tools, plus the `xorg-apps` meta-package:
7676

77-
* iceauth * xcursorgen * xkill
78-
* sessreg * xdriinfo * xlsatoms
79-
* setxkbmap * xev * xmessage
80-
* smproxy * xgamma * xorg-apps
81-
* x11perf * xhost * xpr
82-
* xbacklight * xkbevd * xrandr
83-
* xcmsdb * xkbutils * xrefresh
84-
* xcursor-themes * xset * xvinfo
85-
* xsetroot * xwd * xwud
77+
* iceauth * xcursorgen * xkbutils
78+
* sessreg * xdriinfo * xkill
79+
* setxkbmap * xev * xlsatoms
80+
* smproxy * xeyes * xmessage
81+
* x11perf * xgamma * xorg-apps
82+
* xbacklight * xhost * xpr
83+
* xcalc * xkbevd * xrandr
84+
* xclipboard * xrefresh * xvinfo
85+
* xcmsdb * xset * xwd
86+
* xcompmgr * xsetroot * xwud
87+
* xcursor-themes
8688

8789
### Libraries (10)
8890

0 commit comments

Comments
 (0)