blob: 0fb10cdf0c3e25d3d16ee36ec0ea27170b7c6169 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72require 'formula'
class Diffpdf < Formula
homepage 'http://www.qtrac.eu/diffpdf.html'
url 'http://www.qtrac.eu/diffpdf-2.1.2.tar.gz'
sha1 'b01a2bfecf8dd2f04d0a799483e9b6e99adba317'
depends_on 'qt'
depends_on 'poppler' => 'with-qt4'
# The location of Poppler library/include paths is hardcoded in the project file
# which causes builds to fail if Homebrew is not installed to /usr/local.
def patches
DATA
end
def install
# The 2.0 sources shipped without translation files. Generate them so that
# compilation does not fail.
system 'lrelease', 'diffpdf.pro'
# Generate makefile and disable .app creation
system 'qmake -spec macx-g++ CONFIG-=app_bundle'
system 'make'
bin.install 'diffpdf'
man1.install 'diffpdf.1'
end
end
__END__
diff --git a/diffpdf.pro b/diffpdf.pro
index 8130da1..e2dfcfd 100644
--- a/diffpdf.pro
+++ b/diffpdf.pro
@@ -34,36 +34,6 @@ LIBS += -lpoppler-qt4
win32 {
CONFIG += release
}
-exists($(HOME)/opt/poppler020/) {
- message(Using locally built Poppler library)
- INCLUDEPATH += $(HOME)/opt/poppler020/include/poppler/cpp
- INCLUDEPATH += $(HOME)/opt/poppler020/include/poppler/qt4
- LIBS += -Wl,-rpath -Wl,$(HOME)/opt/poppler020/lib -L$(HOME)/opt/poppler020/lib
-} else {
- exists(/poppler_lib) {
- message(Using locally built Poppler library on Windows)
- INCLUDEPATH += /c/poppler_lib/include/poppler/cpp
- INCLUDEPATH += /c/poppler_lib/include/poppler/qt4
- LIBS += -Wl,-rpath -Wl,/c/poppler_lib/bin -Wl,-L/c/poppler_lib/bin
- } else {
- exists(/usr/include/poppler/qt4) {
- INCLUDEPATH += /usr/include/poppler/cpp
- INCLUDEPATH += /usr/include/poppler/qt4
- } else {
- INCLUDEPATH += /usr/local/include/poppler/cpp
- INCLUDEPATH += /usr/local/include/poppler/qt4
- }
- }
-}
-#exists($(HOME)/opt/podofo09/) {
-# message(Using locally built PoDoFo library)
-# @charset "UTF-8";
/* CSS Document */
#ng-console {
border: thin solid black;
font-family: 'courier';
font-size: x-small;
}
#ng-console .ng-console-error {
color: red;
}
#ng-console .ng-console-info {
color: blue;
}
.ng-upload-widget object {
align:center;
}
.ng-upload-widget a {
margin-right: .3em;
}
.ng-upload-widget span {
color: #999999;
font-size: smaller;
}
.ng-format-negative {
color: red;
}
.ng-exception {
border: 2px solid #FF0000;
font-family: "Courier New", Courier, monospace;
font-size: smaller;
}
.ng-validation-error {
border: 2px solid #FF0000;
}
.ng-hidden {
display:none;
}
/*****************
* DatePicker
*****************/
div.ui-widget {
font-size: 11px;
}
/*****************
* OrderBy
*****************/
.ng-ascend,
.ng-descend {
padding-right: 20px;
background-repeat: no-repeat;
background-position: right;
}
.ng-ascend { background-image: url(angular_images/arrow_ascend.png); }
.ng-descend { background-image: url(angular_images/arrow_descend.png); }
/*****************
* TIP
*****************/
#ng-callout {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 13px;
font-weight: normal;
font-family: Verdana, Arial, Helvetica, sans-serif;
vertical-align: baseline;
background: transparent;
text-decoration: none;
}
#ng-callout .ng-arrow-left{
background-image: url(angular_images/arrow_left.gif);
background-repeat: no-repeat;
background-position: left top;
position: absolute;
z-index:101;
left:-12px;
height:23px;
width:10px;
top:-3px;
}
#ng-callout .ng-arrow-right{
background-image: url(angular_images/arrow_right.gif);
background-repeat: no-repeat;
background-position: left top;
position: absolute;
z-index:101;
height:23px;
width:11px;
top:-2px;
}
#ng-callout {
position: absolute;
z-index:100;
border: 2px solid #CCCCCC;
background-color: #fff;
}
#ng-callout .ng-content{
padding:10px 10px 10px 10px;
color:#333333;
}
#ng-callout .ng-title{
background-color: #CCCCCC;
text-align: left;
padding-left: 8px;
padding-bottom: 5px;
padding-top: 2px;
font-weight:bold;
}
#ng-spacer {
height: 1.2em;
}
#ng-loading {
position: fixed;
bottom: 0;
height: 1.2em;
width: 100%;
text-align: center;
}
/*****************
* Login
*****************/
#ng-login {
z-index: 2000;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
padding-top: 100px;
}
#ng-login .ng-login-container {
width: 500px;
height: 380px;
margin: auto;
border-top: 5px solid #FFF;
border-left: 5px solid #DDD;
border-right: 5px solid #777;
border-bottom: 5px solid #555;
padding: 0 3px 3px 0;
}
#ng-login .ng-login-container iframe {
width: 100%;
height: 100%;
border: 2px solid black;
}
/*****************
* indicators
*****************/
.ng-indicator-wait {
display: inline-block;
height: 16px;
width: 16px;
background-image: url("angular_images/indicator-wait.png");
}
.ng-input-indicator-wait {
background-image: url("angular_images/indicator-wait.png");
background-position: right;
background-repeat: no-repeat;
}
|