summaryrefslogtreecommitdiff
path: root/homebrew/aldo
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/aldo')
-rw-r--r--homebrew/aldo/.beer54
-rw-r--r--homebrew/aldo/.make.sh-auto3
-rw-r--r--homebrew/aldo/_metadata/description1
-rw-r--r--homebrew/aldo/_metadata/homepage1
-rw-r--r--homebrew/aldo/_metadata/name1
-rw-r--r--homebrew/aldo/_metadata/version1
-rwxr-xr-xhomebrew/aldo/download.sh1
-rwxr-xr-xhomebrew/aldo/patches.sh29
8 files changed, 91 insertions, 0 deletions
diff --git a/homebrew/aldo/.beer b/homebrew/aldo/.beer
new file mode 100644
index 000000000..e9857e12c
--- /dev/null
+++ b/homebrew/aldo/.beer
@@ -0,0 +1,54 @@
+{
+ "name": "Aldo",
+ "description": "Morse code learning tool released under GPL",
+ "url": "https://savannah.nongnu.org/download/aldo/aldo-0.7.7.tar.bz2",
+ "mirror": null,
+ "homepage": "https://www.nongnu.org/aldo/",
+ "depends": [
+ {
+ "depend": "libao",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "diff --git a/src/menu.cc b/src/menu.cc\n",
+ "index 483b826..092d604 100644\n",
+ "--- a/src/menu.cc\n",
+ "+++ b/src/menu.cc\n",
+ "@@ -112,20 +112,17 @@ void Menu::add_item(id_type id, std::string c, Function2 f)\n",
+ " \n",
+ " void Menu::add_item_at(unsigned int pos, id_type id, std::string c, Function1 f)\n",
+ " {\n",
+ "- IT it(&m_its[pos]);\n",
+ "- m_its.insert(it, Item(id,c,f) );\n",
+ "+ m_its.insert(m_its.begin()+pos, Item(id,c,f) );\n",
+ " }\n",
+ " \n",
+ " void Menu::add_item_at(unsigned int pos, id_type id, std::string c, Function2 f)\n",
+ " {\n",
+ "- IT it(&m_its[pos]);\n",
+ "- m_its.insert(it, Item(id,c,f) );\n",
+ "+ m_its.insert(m_its.begin()+pos, Item(id,c,f) );\n",
+ " }\n",
+ " \n",
+ " void Menu::delete_item_at(unsigned int pos)\n",
+ " {\n",
+ "- IT it(&m_its[pos]);\n",
+ "- m_its.erase(it);\n",
+ "+ m_its.erase(m_its.begin()+pos);\n",
+ " }\n"
+ ]
+ }
+ ],
+ "install": [
+ "system \"./configure\", \"--disable-dependency-tracking\", \"--prefix=#{prefix}\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "0.7.7",
+ "file": "aldo.rb"
+} \ No newline at end of file
diff --git a/homebrew/aldo/.make.sh-auto b/homebrew/aldo/.make.sh-auto
new file mode 100644
index 000000000..557a9e0d1
--- /dev/null
+++ b/homebrew/aldo/.make.sh-auto
@@ -0,0 +1,3 @@
+pkg:setup
+pkg:configure --disable-dependency-tracking
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/aldo/_metadata/description b/homebrew/aldo/_metadata/description
new file mode 100644
index 000000000..7641fa36d
--- /dev/null
+++ b/homebrew/aldo/_metadata/description
@@ -0,0 +1 @@
+Morse code learning tool released under GPL
diff --git a/homebrew/aldo/_metadata/homepage b/homebrew/aldo/_metadata/homepage
new file mode 100644
index 000000000..5bda200fc
--- /dev/null
+++ b/homebrew/aldo/_metadata/homepage
@@ -0,0 +1 @@
+https://www.nongnu.org/aldo/
diff --git a/homebrew/aldo/_metadata/name b/homebrew/aldo/_metadata/name
new file mode 100644
index 000000000..45040f58c
--- /dev/null
+++ b/homebrew/aldo/_metadata/name
@@ -0,0 +1 @@
+Aldo
diff --git a/homebrew/aldo/_metadata/version b/homebrew/aldo/_metadata/version
new file mode 100644
index 000000000..879be8a98
--- /dev/null
+++ b/homebrew/aldo/_metadata/version
@@ -0,0 +1 @@
+0.7.7
diff --git a/homebrew/aldo/download.sh b/homebrew/aldo/download.sh
new file mode 100755
index 000000000..9f6e4fd9e
--- /dev/null
+++ b/homebrew/aldo/download.sh
@@ -0,0 +1 @@
+wget https://savannah.nongnu.org/download/aldo/aldo-0.7.7.tar.bz2 \ No newline at end of file
diff --git a/homebrew/aldo/patches.sh b/homebrew/aldo/patches.sh
new file mode 100755
index 000000000..ea0eeda3b
--- /dev/null
+++ b/homebrew/aldo/patches.sh
@@ -0,0 +1,29 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/src/menu.cc b/src/menu.cc
+index 483b826..092d604 100644
+--- a/src/menu.cc
++++ b/src/menu.cc
+@@ -112,20 +112,17 @@ void Menu::add_item(id_type id, std::string c, Function2 f)
+
+ void Menu::add_item_at(unsigned int pos, id_type id, std::string c, Function1 f)
+ {
+- IT it(&m_its[pos]);
+- m_its.insert(it, Item(id,c,f) );
++ m_its.insert(m_its.begin()+pos, Item(id,c,f) );
+ }
+
+ void Menu::add_item_at(unsigned int pos, id_type id, std::string c, Function2 f)
+ {
+- IT it(&m_its[pos]);
+- m_its.insert(it, Item(id,c,f) );
++ m_its.insert(m_its.begin()+pos, Item(id,c,f) );
+ }
+
+ void Menu::delete_item_at(unsigned int pos)
+ {
+- IT it(&m_its[pos]);
+- m_its.erase(it);
++ m_its.erase(m_its.begin()+pos);
+ }
+EOF