summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-embedded/gputils
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-embedded/gputils')
-rw-r--r--dev-embedded/gputils/Manifest7
-rw-r--r--dev-embedded/gputils/files/gputils-0.13.6-code_pack.patch182
-rw-r--r--dev-embedded/gputils/files/gputils-0.13.7-strncat.patch94
-rw-r--r--dev-embedded/gputils/gputils-0.13.6-r1.ebuild30
-rw-r--r--dev-embedded/gputils/gputils-0.13.7.ebuild27
-rw-r--r--dev-embedded/gputils/gputils-0.14.0.ebuild19
-rw-r--r--dev-embedded/gputils/gputils-0.14.1.ebuild19
-rw-r--r--dev-embedded/gputils/gputils-0.14.2.ebuild19
-rw-r--r--dev-embedded/gputils/gputils-1.2.0.ebuild19
-rw-r--r--dev-embedded/gputils/gputils-1.4.0.ebuild26
-rw-r--r--dev-embedded/gputils/metadata.xml8
11 files changed, 450 insertions, 0 deletions
diff --git a/dev-embedded/gputils/Manifest b/dev-embedded/gputils/Manifest
new file mode 100644
index 000000000000..87e1af69b432
--- /dev/null
+++ b/dev-embedded/gputils/Manifest
@@ -0,0 +1,7 @@
+DIST gputils-0.13.6.tar.gz 2042890 SHA256 e7bc35dcaddfefbc9bed0d4e4c09c6bcff1e3eab2c3d5dc555e08755ae877156 SHA512 e5227863c2f103db133102d526fd60d08f306f0ca8cf4b1f951616e8cf72264912394fa51375734c006d48bbe1adf8038347c35d8401f15ec5cfe906008f212d WHIRLPOOL 7bb3ac2425e406fe2e0af30c9134504eec29b29638c19713176a10f3abe0c179238364e14bd7b2a7b8daa9e7902b2477b96124f48df04ad052efe2b66c09fb8c
+DIST gputils-0.13.7.tar.gz 2670129 SHA256 94dd5754393cc6391d609655a59200fa47e0c9435088990be0ed3116b5325c0f SHA512 4133a0281c125abb964d2451bfff422444f9816ebb4c17dcc8faa88829e7a84d6cb542cfb9acda397ef9f14a1979644fbcf29aa489cdf94fb6e26c99b2ee901b WHIRLPOOL 324d859335bc5653bea6db229d052f2ca10ea07f00bf7b6e42282ac810a1b450479e0a0c9c405d68dfc38b546627ccc81c323df946e8bfd8c94c023b8e1e1664
+DIST gputils-0.14.0.tar.gz 2802791 SHA256 39de621e739c45775fb7f72282c1355208039600eadcd88875bfdfac9f0d75ad SHA512 ca50c95fc81043f8672db0d5101831de65a536ce8e5061aabedfa340f821bc7eb6db7bea6f8923b239167ed65a17b1fe7d32d40e10e69b92d351ba408535f1d4 WHIRLPOOL ce67a84a4e0bfcbbaf384130fbca53ce09e63d357314b1fb74972a1b2fe56fa33c576c1720a5aed3ff3362d1ddae57d7ad7350e937b6e08774f1ad1bd6f77825
+DIST gputils-0.14.1.tar.gz 3233430 SHA256 8e2d195b4b84640c182a7ba1aaae958de151f46463d404b85324debbedc0af8e SHA512 e32b7628377390a491b3455a7c5c89cf29b8dd4928f450c879d4d9de4416536265198346ba5b5fad073ac03c33af879ab8acc0a6d6d4713d5ef8c3ea94a4c4dd WHIRLPOOL d160f1dd89c7ece366016d75e62857ae95c54da8dc0186369d65fa0a1041cbe1cc9fc5d8a90771ad4bec77cd7300772daae23b46e82f1bec1a25281cf82040c8
+DIST gputils-0.14.2.tar.gz 3257391 SHA256 d363861dafd44b5db3a7313b4149563fae9e99235f66744394589c3976a77406 SHA512 80e3d488a043e6915e297951190fec2dfb8d073bee793a64e2574aa6c88ad3c180f6e541b71c3dc8f5b844766236293b7c37abd1461593f5d827fdb84cf65a6c WHIRLPOOL d32fec294c53a8f888fe53236b8bbe8bd460a565fa2f5bd91a3ee66ecd13493c597989222a3b494e7d59aae9bd45398ce64533645ff86ad1ae288a01cfc07e0d
+DIST gputils-1.2.0.tar.gz 7585602 SHA256 2216382ef4b4a4fa88af1cb83d837587e02936b55eeb932ace8d359c05089695 SHA512 bb512bb4c55ca4d6bcd2dd12c07f63c51f1a754b75280c7bc2cea469016ee074ba0f07755899de4d5af431897b3e0a33a5f72a3b64f495f38952fb948719a1bd WHIRLPOOL aadd2f057e67d1c71516a78e3f3fe0dec8e2d830216c99aed70b55481b86dd211c69cb5a63735a0fe85672ccae15b3898be7871a01cb8b8bd58e7af30da1c979
+DIST gputils-1.4.0.tar.gz 9659449 SHA256 00279da588eee96a63aba586fe916359097b6db1e6768ce8940a5d18d37e11b1 SHA512 b3425f218b9ef17a3e395c3d4588490cd0cd3bd53d009c1cf499e937438601b2b2ffeffad58a6a741cb326c82b18343ff066f531db033fe5a9bfcbb2fbbfc993 WHIRLPOOL ddf1f0b3d2020646508b1f5805bb7c2e4b5086ea517cb7390f9690af4a15604a395de32b99db20929ebae7a8bb1e93fd11136559dc754a1907241eb01dbc5dac
diff --git a/dev-embedded/gputils/files/gputils-0.13.6-code_pack.patch b/dev-embedded/gputils/files/gputils-0.13.6-code_pack.patch
new file mode 100644
index 000000000000..f743ec343f62
--- /dev/null
+++ b/dev-embedded/gputils/files/gputils-0.13.6-code_pack.patch
@@ -0,0 +1,182 @@
+Index: gpasm/lst.c
+===================================================================
+--- gpasm/lst.c (revision 541)
++++ gpasm/lst.c (revision 542)
+@@ -212,11 +212,75 @@
+ }
+ }
+
++unsigned int lst_data(char *m, unsigned int byte_org,
++ unsigned int bytes_emitted, size_t sizeof_m)
++{
++ char buf[BUFSIZ];
++ unsigned int i;
++ unsigned int lst_bytes = 0;
++
++ if ((byte_org & 1) != 0) {
++ /* not word-aligned */
++ /* list first byte */
++ unsigned char emit_byte = (unsigned char)(i_memory_get(state.i_memory,
++ (byte_org >> 1)) >> 8);
++ snprintf(buf, sizeof(buf), "%02X", emit_byte);
++ strncat(m, buf, sizeof_m);
++ ++lst_bytes;
++ /* list whole words */
++ for (i = 0; (i < ((bytes_emitted-1) >> 1)) && (i < 1); ++i) {
++ unsigned int emit_word = i_memory_get(state.i_memory,
++ ((byte_org+1) >> 1) + i) & 0xffff;
++ snprintf(buf, sizeof(buf), "%02X %02X", emit_word & 0x00ff,
++ emit_word >> 8);
++ strncat(m, buf, sizeof_m);
++ lst_bytes += 2;
++ }
++ /* list extra byte if odd */
++ if (((byte_org+bytes_emitted) & 1) != 0) {
++ snprintf(buf, sizeof(buf), "%02X ", i_memory_get(state.i_memory,
++ ((byte_org + bytes_emitted - 2) >> 1)) & 0x00ff);
++ strncat(m, buf, sizeof_m);
++ ++lst_bytes;
++ }
++ else {
++ strncat(m, " ", sizeof_m);
++ }
++ }
++ else { /* word-aligned */
++ /* list full words as bytes */
++ for (i = 0; (i < (bytes_emitted >> 1)) && (i < 2); ++i) {
++ unsigned int emit_word = i_memory_get(state.i_memory,
++ (byte_org>>1) + i) & 0xffff;
++ snprintf(buf, sizeof(buf), "%04X ", emit_word);
++ strncat(m, buf, sizeof_m);
++ lst_bytes += 2;
++ }
++ if (bytes_emitted < 4) {
++ /* list extra byte if odd */
++ if (((byte_org+bytes_emitted) & 1) != 0) {
++ snprintf(buf, sizeof(buf), "%02X ", i_memory_get(state.i_memory,
++ (byte_org+bytes_emitted)>>1) & 0x00ff);
++ strncat(m, buf, sizeof_m);
++ ++lst_bytes;
++ }
++ else {
++ strncat(m, " ", sizeof_m);
++ }
++ }
++ }
++
++ return lst_bytes;
++}
++
+ void lst_format_line(char *src_line, int value)
+ {
+ char m[BUFSIZ];
+ char buf[BUFSIZ];
+ unsigned int emitted = 0;
++ unsigned int byte_org = 0;
++ unsigned int bytes_emitted = 0;
++ unsigned int lst_bytes;
+
+ assert(src_line != NULL);
+
+@@ -239,41 +303,21 @@
+ state.device.id_location + 1) & 0xffff);
+ break;
+ case insn:
+- emitted = state.org - state.lst.line.was_org
+- + (state.obj.section &&
+- state.obj.section->emitted_pack_byte ? 1 : 0);
+- snprintf(m, sizeof(m), "%04X ", (state.lst.line.was_org << _16bit_core)
+- - (state.obj.section &&
+- ((emitted == 0 &&
+- state.obj.section->have_pack_byte) ||
+- state.obj.section->emitted_pack_byte) ? 1 : 0));
++ byte_org = (state.lst.line.was_org << 1);
++ if (state.obj.section)
++ byte_org -= (state.obj.section->emitted_pack_byte ? 1 : 0);
++ bytes_emitted = (state.org << 1) - byte_org;
++ if (state.obj.section)
++ bytes_emitted -= (state.obj.section->have_pack_byte ? 1 : 0);
++ emitted = (bytes_emitted >> 1);
++ if (((byte_org & 1) == 0) && ((bytes_emitted & 1) != 0))
++ emitted += 1;
++ snprintf(m, sizeof(m), "%04X ", byte_org >> (1 - _16bit_core));
+
+- if (emitted >= 1) {
+- if(state.obj.section && state.obj.section->have_pack_byte && emitted == 1)
+- snprintf(buf, sizeof(buf), "%02X ", i_memory_get(state.i_memory, state.lst.line.was_org) & 0xff);
+- else if(state.obj.section && state.obj.section->emitted_pack_byte)
+- snprintf(buf, sizeof(buf), " %02X ", (i_memory_get(state.i_memory, state.lst.line.was_org - 1) & 0xff00) >> 8);
+- else
+- snprintf(buf, sizeof(buf), "%04X ", i_memory_get(state.i_memory,
+- state.lst.line.was_org) & 0xffff);
++ lst_bytes = lst_data(m, byte_org, bytes_emitted, sizeof(m));
++ byte_org += lst_bytes;
++ bytes_emitted -= lst_bytes;
+
+- strncat(m, buf, sizeof(m));
+- } else
+- strncat(m, " ", sizeof(m));
+-
+- if (emitted >= 2) {
+- if(state.obj.section && state.obj.section->have_pack_byte && emitted == 2)
+- snprintf(buf, sizeof(buf), "%02X ", i_memory_get(state.i_memory,
+- state.lst.line.was_org
+- + (state.obj.section->emitted_pack_byte ? 0 : 1)) & 0xffff);
+- else
+- snprintf(buf, sizeof(buf), "%04X ", i_memory_get(state.i_memory,
+- state.lst.line.was_org
+- + (state.obj.section &&
+- state.obj.section->emitted_pack_byte ? 0 : 1)) & 0xffff);
+- strncat(m, buf, sizeof(buf));
+- } else
+- strncat(m, " ", sizeof(m));
+ break;
+ case config:
+ if(_16bit_core) {
+@@ -376,39 +420,16 @@
+ lst_line(m);
+ }
+
+- if (emitted > 2) {
+- int i;
++ if (bytes_emitted > 0) {
++ while (bytes_emitted > 0) {
++ /* data left to print on separate lines */
+
+- for (i = 2; i < emitted; i += 2) {
+- unsigned int org = state.lst.line.was_org + i -
+- (state.obj.section && state.obj.section->emitted_pack_byte ? 1 : 0);
+-
+- if ((i + 1) < emitted)
+- if(state.obj.section && state.obj.section->have_pack_byte)
+- snprintf(m, sizeof(m), "%04X %04X %02X ",
+- org << _16bit_core,
+- i_memory_get(state.i_memory, org) & 0xffff,
+- i_memory_get(state.i_memory, org + 1) & 0xff);
+- else
+- snprintf(m, sizeof(m), "%04X %04X %04X",
+- org << _16bit_core,
+- i_memory_get(state.i_memory, org) & 0xffff,
+- i_memory_get(state.i_memory, org + 1) & 0xffff);
+- else {
+- if(state.obj.section && state.obj.section->have_pack_byte)
+- snprintf(m, sizeof(m), "%04X %02X ",
+- ((state.lst.line.was_org + i) << _16bit_core),
+- i_memory_get(state.i_memory,
+- state.lst.line.was_org + i) & 0xff);
+- else
+- snprintf(m, sizeof(m), "%04X %04X",
+- ((state.lst.line.was_org + i) << _16bit_core),
+- i_memory_get(state.i_memory,
+- state.lst.line.was_org + i) & 0xffff);
+- }
++ strncpy(m, " ", sizeof(m));
++ lst_bytes = lst_data(m, byte_org, bytes_emitted, sizeof(m));
++ byte_org += lst_bytes;
++ bytes_emitted -= lst_bytes;
+ lst_line(m);
+ }
+-
+ state.cod.emitting = 0;
+ }
+
diff --git a/dev-embedded/gputils/files/gputils-0.13.7-strncat.patch b/dev-embedded/gputils/files/gputils-0.13.7-strncat.patch
new file mode 100644
index 000000000000..577a4bf0328f
--- /dev/null
+++ b/dev-embedded/gputils/files/gputils-0.13.7-strncat.patch
@@ -0,0 +1,94 @@
+https://sourceforge.net/tracker/?func=detail&aid=3081197&group_id=41924&atid=431665
+https://sourceforge.net/tracker/?func=detail&aid=3081206&group_id=41924&atid=431665
+
+--- a/gpasm/scan.c
++++ b/gpasm/scan.c
+@@ -461,9 +461,7 @@ search_pathes(struct source_context *new, char *name)
+ int i;
+
+ for(i = 0; i < state.path_num; i++) {
+- strncpy(tryname, state.paths[i], sizeof(tryname));
+- strncat(tryname, COPY_CHAR, sizeof(tryname));
+- strncat(tryname, name, sizeof(tryname));
++ snprintf(tryname, sizeof(tryname), "%s%s%s", state.paths[i], COPY_CHAR, name);
+ new->f = fopen(tryname, "rt");
+ if(new->f) {
+ new->name = strdup(tryname);
+--- a/gplink/gplink.c
++++ b/gplink/gplink.c
+@@ -340,9 +340,7 @@ void gplink_open_coff(char *name)
+ int i;
+
+ for(i = 0; i < state.numpaths; i++) {
+- strncpy(file_name, state.paths[i], sizeof(file_name));
+- strncat(file_name, COPY_CHAR, sizeof(file_name));
+- strncat(file_name, name, sizeof(file_name));
++ snprintf(file_name, sizeof(file_name), "%s%s%s", state.paths[i], COPY_CHAR, name);
+ coff = fopen(file_name, "rb");
+ if (coff != NULL) {
+ break;
+@@ -695,9 +693,7 @@ linker(void)
+ gp_error("linker script not specified and can't determine default script");
+ return EXIT_FAILURE;
+ }
+- strncpy(file_name, gp_lkr_path, sizeof(file_name));
+- strncat(file_name, COPY_CHAR, sizeof(file_name));
+- strncat(file_name, script_name, sizeof(file_name));
++ snprintf(file_name, sizeof(file_name), "%s%s%s", gp_lkr_path, COPY_CHAR, script_name);
+ gp_message("using default linker script \"%s\"", file_name);
+ open_src(file_name, 0);
+ yyparse();
+--- a/gplink/scan.c
++++ b/gplink/scan.c
+@@ -115,9 +115,7 @@ void open_src(char *name, int isinclude)
+ int i;
+
+ for(i = 0; i < state.numpaths; i++) {
+- strncpy(tryname, state.paths[i], sizeof(tryname));
+- strncat(tryname, COPY_CHAR, sizeof(tryname));
+- strncat(tryname, name, sizeof(tryname));
++ snprintf(tryname, sizeof(tryname), "%s%s%s", state.paths[i], COPY_CHAR, name);
+ new->f = fopen(tryname, "rt");
+ if(new->f) {
+ new->name = strdup(tryname);
+--- a/gpasm/lst.c
++++ b/gpasm/lst.c
+@@ -149,22 +149,23 @@ void lst_memory_map(MemBlock *m)
+ }
+
+ if(row_used) {
+- snprintf(buf, sizeof(buf), "%08x :", (i + base) << _16bit_core);
++ int len = sizeof(buf);
++ len -= snprintf(buf, len, "%08x :", (i + base) << _16bit_core);
+ for (j = 0; j < num_per_line; j++) {
+ if ((j % num_per_block) == 0) {
+- strncat(buf, " ", sizeof(buf));
++ strncat(buf, " ", len--);
+ }
+ if (m->memory[i + j] & MEM_USED_MASK) {
+- strncat(buf, "X", sizeof(buf));
++ strncat(buf, "X", len--);
+ if (_16bit_core) {
+ /* each word has two bytes */
+- strncat(buf, "X", sizeof(buf));
++ strncat(buf, "X", len--);
+ }
+ } else {
+- strncat(buf, "-", sizeof(buf));
++ strncat(buf, "-", len--);
+ if (_16bit_core) {
+ /* each word has two bytes */
+- strncat(buf, "-", sizeof(buf));
++ strncat(buf, "-", len--);
+ }
+ }
+ }
+@@ -404,7 +405,7 @@ void lst_format_line(char *src_line, int value)
+ } else {
+ snprintf(buf, sizeof(buf), " M ");
+ }
+- strncat(m, buf, sizeof(m));
++ strncat(m, buf, sizeof(m) - strlen(m));
+
+ /* Now copy 'l' to 'e', expanding tabs as required */
+ {
diff --git a/dev-embedded/gputils/gputils-0.13.6-r1.ebuild b/dev-embedded/gputils/gputils-0.13.6-r1.ebuild
new file mode 100644
index 000000000000..9dfa387e7c96
--- /dev/null
+++ b/dev-embedded/gputils/gputils-0.13.6-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="Collection of tools including assembler, linker and librarian for PIC microcontrollers"
+HOMEPAGE="http://gputils.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-code_pack.patch
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Installation failed"
+ dodoc AUTHORS ChangeLog INSTALL NEWS README TODO doc/gputils.ps
+ insinto /usr/share/doc/${PF}/
+ doins doc/gputils.pdf
+}
diff --git a/dev-embedded/gputils/gputils-0.13.7.ebuild b/dev-embedded/gputils/gputils-0.13.7.ebuild
new file mode 100644
index 000000000000..6f2ff0e70d31
--- /dev/null
+++ b/dev-embedded/gputils/gputils-0.13.7.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="Collection of tools including assembler, linker and librarian for PIC microcontrollers"
+HOMEPAGE="http://gputils.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-strncat.patch
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog INSTALL NEWS README TODO doc/gputils.ps
+ insinto /usr/share/doc/${PF}
+ doins doc/gputils.pdf || die
+}
diff --git a/dev-embedded/gputils/gputils-0.14.0.ebuild b/dev-embedded/gputils/gputils-0.14.0.ebuild
new file mode 100644
index 000000000000..fc453d140d90
--- /dev/null
+++ b/dev-embedded/gputils/gputils-0.14.0.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+DESCRIPTION="Collection of tools including assembler, linker and librarian for PIC microcontrollers"
+HOMEPAGE="http://gputils.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+src_install() {
+ default
+ dodoc doc/gputils.pdf
+}
diff --git a/dev-embedded/gputils/gputils-0.14.1.ebuild b/dev-embedded/gputils/gputils-0.14.1.ebuild
new file mode 100644
index 000000000000..e10a467566a7
--- /dev/null
+++ b/dev-embedded/gputils/gputils-0.14.1.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+DESCRIPTION="Collection of tools including assembler, linker and librarian for PIC microcontrollers"
+HOMEPAGE="http://gputils.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+src_install() {
+ default
+ dodoc doc/gputils.pdf
+}
diff --git a/dev-embedded/gputils/gputils-0.14.2.ebuild b/dev-embedded/gputils/gputils-0.14.2.ebuild
new file mode 100644
index 000000000000..e10a467566a7
--- /dev/null
+++ b/dev-embedded/gputils/gputils-0.14.2.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+DESCRIPTION="Collection of tools including assembler, linker and librarian for PIC microcontrollers"
+HOMEPAGE="http://gputils.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+src_install() {
+ default
+ dodoc doc/gputils.pdf
+}
diff --git a/dev-embedded/gputils/gputils-1.2.0.ebuild b/dev-embedded/gputils/gputils-1.2.0.ebuild
new file mode 100644
index 000000000000..32909d55285e
--- /dev/null
+++ b/dev-embedded/gputils/gputils-1.2.0.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+DESCRIPTION="Collection of tools including assembler, linker and librarian for PIC microcontrollers"
+HOMEPAGE="http://gputils.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+src_install() {
+ default
+ dodoc doc/gputils.pdf
+}
diff --git a/dev-embedded/gputils/gputils-1.4.0.ebuild b/dev-embedded/gputils/gputils-1.4.0.ebuild
new file mode 100644
index 000000000000..23e506d84d5d
--- /dev/null
+++ b/dev-embedded/gputils/gputils-1.4.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Collection of tools including assembler, linker and librarian for PIC microcontrollers"
+HOMEPAGE="http://gputils.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+src_configure() {
+ tc-ld-disable-gold #369291
+ default
+}
+
+src_install() {
+ default
+ dodoc doc/gputils.pdf
+}
diff --git a/dev-embedded/gputils/metadata.xml b/dev-embedded/gputils/metadata.xml
new file mode 100644
index 000000000000..cec11dbd208c
--- /dev/null
+++ b/dev-embedded/gputils/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>dev-embedded</herd>
+ <upstream>
+ <remote-id type="sourceforge">gputils</remote-id>
+ </upstream>
+</pkgmetadata>