Add tika package (#8647)

This commit is contained in:
Ed Reel
2023-09-13 12:50:43 -05:00
committed by GitHub
parent e8565c4a14
commit 3f77d0d2b9
5 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
/usr/local/bin/tika
/usr/local/share/tika/tika-app-2.9.0.jar

View File

@@ -0,0 +1,2 @@
/usr/local/bin/tika
/usr/local/share/tika/tika-app-2.9.0.jar

View File

@@ -0,0 +1,2 @@
/usr/local/bin/tika
/usr/local/share/tika/tika-app-2.9.0.jar

36
packages/tika.rb Normal file
View File

@@ -0,0 +1,36 @@
require 'package'
class Tika < Package
description 'The Apache Tika™ toolkit detects and extracts metadata and text from over a thousand different file types (such as PPT, XLS, and PDF).'
homepage 'https://tika.apache.org/'
version '2.9.0'
license 'Apache-2.0'
compatibility 'all'
source_url 'https://dlcdn.apache.org/tika/2.9.0/tika-app-2.9.0.jar'
source_sha256 '390382b0ad31a7da55d83cce58538f4b59988eda6ebdf259459d4ef109df1b06'
depends_on 'openjdk8'
depends_on 'libx11'
depends_on 'libxext'
depends_on 'libxrender'
depends_on 'libxtst'
no_compile_needed
def self.build
tika = <<~EOF
#!/bin/bash
java -jar #{CREW_PREFIX}/share/tika/tika-app-#{version}.jar
EOF
File.write('tika.sh', tika)
end
def self.install
FileUtils.install "tika-app-#{version}.jar", "#{CREW_DEST_PREFIX}/share/tika/tika-app-#{version}.jar", mode: 0o644
FileUtils.install 'tika.sh', "#{CREW_DEST_PREFIX}/bin/tika", mode: 0o755
end
def self.postinstall
puts "\nType 'tika' to get started.\n".lightblue
end
end

View File

@@ -8166,6 +8166,11 @@ url: https://github.com/jonas/tig/releases
activity: low
---
kind: url
name: tika
url: https://github.com/apache/tika/tags
activity: low
---
kind: url
name: tilp2
url: https://sourceforge.net/projects/tilp/files/tilp2-linux/
activity: none