Commit ca28006b3c2a2dcbee8d7d6d6d2483a96d8046d6

Thomas de Grivel 2023-02-28T21:51:29

icecast-server

diff --git a/.gitignore b/.gitignore
index eaea6ed..790a9f6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,9 @@
 /bin/
 /ci/
+/etc/
 /include/
 /lib/
+/share/
 /src/
 /target/
 /var/
diff --git a/lib/rbpkg/ci.rb b/lib/rbpkg/ci.rb
new file mode 100644
index 0000000..d405ba1
--- /dev/null
+++ b/lib/rbpkg/ci.rb
@@ -0,0 +1,8 @@
+load "#{File.dirname(File.dirname(__FILE__))}/rbpkg.rb"
+
+module Rbpkg.CI
+
+
+  def tag(name)
+    
+end
diff --git a/lib/rbpkg/repo.rb b/lib/rbpkg/repo.rb
index 98fd8ab..8637c9e 100644
--- a/lib/rbpkg/repo.rb
+++ b/lib/rbpkg/repo.rb
@@ -10,7 +10,7 @@ class Rbpkg::Repo
     if File.executable?("#{src_dir}/autogen")
       cmd! "cd #{sh_quote(src_dir)} && ./autogen"
     elsif File.exists?("#{src_dir}/autogen.sh")
-      cmd! "cd #{sh_quote(src_dir)} && ./autogen"
+      cmd! "cd #{sh_quote(src_dir)} && sh autogen.sh"
     end
   end
 
@@ -308,7 +308,7 @@ class Rbpkg::Repo
   end
 
   def name
-    self.class.name.to_s.downcase.scan(/::([^:]*)$/)[0][0]
+    @@name
   end
 
   def obj_dir
@@ -498,5 +498,6 @@ class Rbpkg::Repo
 
   def self.def_name(name)
     Rbpkg::Repos.def_repo(name, self)
+    @@name = name
   end
 end
diff --git a/lib/rbpkg/repos/c3.rb b/lib/rbpkg/repos/c3.rb
index aa241ce..3ba21d1 100644
--- a/lib/rbpkg/repos/c3.rb
+++ b/lib/rbpkg/repos/c3.rb
@@ -9,5 +9,4 @@ class Rbpkg::Repos::C3 < Rbpkg::Repo
   def git_url
     "https://git.kmx.io/c3-lang/c3.git"
   end
-
 end
diff --git a/lib/rbpkg/repos/icecast_server.rb b/lib/rbpkg/repos/icecast_server.rb
new file mode 100644
index 0000000..46a0326
--- /dev/null
+++ b/lib/rbpkg/repos/icecast_server.rb
@@ -0,0 +1,16 @@
+class Rbpkg::Repos::IcecastServer < Rbpkg::Repo
+
+  def_name "icecast-server"
+
+  def self.dependencies
+    []
+  end
+
+  def dir
+    "xiph.org/icecast-server"
+  end
+
+  def git_url
+    "https://gitlab.xiph.org/xiph/icecast-server.git"
+  end
+end