diff options
Diffstat (limited to 'homebrew/dspdfviewer')
-rw-r--r-- | homebrew/dspdfviewer/.beer | 99 | ||||
-rw-r--r-- | homebrew/dspdfviewer/.make.sh-auto | 11 | ||||
-rw-r--r-- | homebrew/dspdfviewer/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/dspdfviewer/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/dspdfviewer/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/dspdfviewer/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/dspdfviewer/download.sh | 1 |
7 files changed, 115 insertions, 0 deletions
diff --git a/homebrew/dspdfviewer/.beer b/homebrew/dspdfviewer/.beer new file mode 100644 index 000000000..f24997ca8 --- /dev/null +++ b/homebrew/dspdfviewer/.beer @@ -0,0 +1,99 @@ +{ + "name": "Dspdfviewer", + "description": "Dual-Screen PDF Viewer for latex-beamer", + "url": "https://github.com/dannyedel/dspdfviewer/archive/v1.15.1.tar.gz", + "mirror": null, + "homepage": "https://dspdfviewer.danny-edel.de/", + "depends": [ + { + "depend": "cmake", + "build-depend": true + }, + { + "depend": "gobject-introspection", + "build-depend": true + }, + { + "depend": "pkg-config", + "build-depend": true + }, + { + "depend": "boost", + "build-depend": false + }, + { + "depend": "cairo", + "build-depend": false + }, + { + "depend": "fontconfig", + "build-depend": false + }, + { + "depend": "freetype", + "build-depend": false + }, + { + "depend": "gettext", + "build-depend": false + }, + { + "depend": "glib", + "build-depend": false + }, + { + "depend": "jpeg", + "build-depend": false + }, + { + "depend": "libpng", + "build-depend": false + }, + { + "depend": "libtiff", + "build-depend": false + }, + { + "depend": "openjpeg", + "build-depend": false + }, + { + "depend": "qt", + "build-depend": false + } + ], + "resource": [ + { + "name": "poppler", + "url": "https://poppler.freedesktop.org/poppler-0.65.0.tar.xz" + }, + { + "name": "font-data", + "url": "https://poppler.freedesktop.org/poppler-data-0.4.9.tar.gz" + } + ], + "conflicts": [], + "patches": [], + "install": [ + "ENV.cxx11", + "resource(\"poppler\").stage do", + "system \"cmake\", \".\", *std_cmake_args,", + "\"-DCMAKE_INSTALL_PREFIX=#{libexec}\",", + "\"-DBUILD_GTK_TESTS=OFF\",", + "\"-DENABLE_CMS=none\",", + "\"-DENABLE_GLIB=ON\",", + "\"-DENABLE_QT5=ON\",", + "\"-DWITH_GObjectIntrospection=ON\",", + "\"-DENABLE_XPDF_HEADERS=ON\"", + "system \"make\", \"install\"", + "libpoppler = (libexec/\"lib/libpoppler.dylib\").readlink", + "to_fix = [\"#{libexec}/lib/libpoppler-cpp.dylib\", \"#{libexec}/lib/libpoppler-glib.dylib\",", + "\"#{libexec}/lib/libpoppler-qt5.dylib\", *Dir[\"#{libexec}/bin/*\"]]", + "to_fix.each do |f|", + "macho = MachO.open(f)", + "macho.change_dylib(\"@rpath/#{libpoppler}\", \"#{libexec}/lib/#{libpoppler}\")", + "macho.write!" + ], + "version": "1.15.1", + "file": "dspdfviewer.rb" +}
\ No newline at end of file diff --git a/homebrew/dspdfviewer/.make.sh-auto b/homebrew/dspdfviewer/.make.sh-auto new file mode 100644 index 000000000..a36b862dd --- /dev/null +++ b/homebrew/dspdfviewer/.make.sh-auto @@ -0,0 +1,11 @@ +pkg:setup +ENV.cxx11 +resource("poppler").stage do +cmake . -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX=#{libexec} -DBUILD_GTK_TESTS=OFF -DENABLE_CMS=none -DENABLE_GLIB=ON -DENABLE_QT5=ON -DWITH_GObjectIntrospection=ON -DENABLE_XPDF_HEADERS=ON +make DESTDIR=${PKG_DEST} install +libpoppler = (libexec/"lib/libpoppler.dylib").readlink +to_fix = ["#{libexec}/lib/libpoppler-cpp.dylib", "#{libexec}/lib/libpoppler-glib.dylib", "#{libexec}/lib/libpoppler-qt5.dylib", *Dir["#{libexec}/bin/*"]] +to_fix.each do |f| +macho = MachO.open(f) +macho.change_dylib("@rpath/#{libpoppler}", "#{libexec}/lib/#{libpoppler}") +macho.write! diff --git a/homebrew/dspdfviewer/_metadata/description b/homebrew/dspdfviewer/_metadata/description new file mode 100644 index 000000000..210b20c36 --- /dev/null +++ b/homebrew/dspdfviewer/_metadata/description @@ -0,0 +1 @@ +Dual-Screen PDF Viewer for latex-beamer diff --git a/homebrew/dspdfviewer/_metadata/homepage b/homebrew/dspdfviewer/_metadata/homepage new file mode 100644 index 000000000..9aad8b3e1 --- /dev/null +++ b/homebrew/dspdfviewer/_metadata/homepage @@ -0,0 +1 @@ +https://dspdfviewer.danny-edel.de/ diff --git a/homebrew/dspdfviewer/_metadata/name b/homebrew/dspdfviewer/_metadata/name new file mode 100644 index 000000000..53197e4bc --- /dev/null +++ b/homebrew/dspdfviewer/_metadata/name @@ -0,0 +1 @@ +Dspdfviewer diff --git a/homebrew/dspdfviewer/_metadata/version b/homebrew/dspdfviewer/_metadata/version new file mode 100644 index 000000000..ace44233b --- /dev/null +++ b/homebrew/dspdfviewer/_metadata/version @@ -0,0 +1 @@ +1.15.1 diff --git a/homebrew/dspdfviewer/download.sh b/homebrew/dspdfviewer/download.sh new file mode 100755 index 000000000..cfc3f0c8c --- /dev/null +++ b/homebrew/dspdfviewer/download.sh @@ -0,0 +1 @@ +wget https://github.com/dannyedel/dspdfviewer/archive/v1.15.1.tar.gz
\ No newline at end of file |