--- /dev/null
+# ChangeLog for app-cdr/cddetect
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/cddetect/ChangeLog,v 1.4 2012/01/03 10:33:56 ssuominen Exp $
+
+*cddetect-2.1 (03 Jan 2012)
+
+ 03 Jan 2012; Samuli Suominen <ssuominen@gentoo.org> +cddetect-2.1.ebuild:
+ Restore cddetect which was removed 2011-03-27 wrt #337628.
+
--- /dev/null
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST cddetect-2.1.tar.gz 11779 RMD160 87e0c6df2b4d2e907c383bcab3d2358201c4c8a8 SHA1 a7efef6215a1abbeeadeb92b633633b50d644389 SHA256 ddf44070cd146bcd859f6cf2b98d43420959bd4145b7f94cfba4203859911133
+EBUILD cddetect-2.1.ebuild 675 RMD160 d5c01a28f866cf854330dd8a9621c6fb023a7fb7 SHA1 958933b5555cfa76642d487b809fefa7d5caf3d9 SHA256 22c796e7a7261859fce6bc6384d93872a37580193c921273d07e86a2b2b7cdd4
+MISC ChangeLog 375 RMD160 5ba57c8f1baeb1e5e9d7954d53ae498a6d30abc8 SHA1 5ed2eb66edf635a2e558c01ba82ce214b3f447a1 SHA256 608e96d80d69894c73d9f50af20201f567c10aab219b626d33363a998b9af5ae
+MISC metadata.xml 166 RMD160 02ca0a5d9279c1b52c3887f5a1f52f3feb002af9 SHA1 b9fccc7c24aa717c30efef068fd544a692f264f6 SHA256 ce62d1e5b04e01d03a732ee6d33b3d500810de8e55af4a527c970e5b475735d8
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iQEcBAEBAgAGBQJPAtkkAAoJEEdUh39IaPFNbIQIAJXBsCwPwKPadkCzvbYPoCYc
+vCbokCPK8NOQT27e0BU4T/TEcn53ltRPvYzmqNW/W63MzLGkavMk/R1JVLbfKdqH
+2SOH+k4ocDD+l6cqd9HXMQ6NpIUC6Crh6eJOuIqNrddjbQhl+jiaYCNrqGIhKOxh
+n53L6xKsguO83FkPM7GP62tNuIZcRb1fThREDucjPCcNw1+NLTYCbwh6ZDtH9mJf
+P4LdQ5n6Pby8q1+LZkiTMuDKbyuSnrVt5b2gFXrwGh5WjIqvi3F5T90lY2P8ElM9
+zTIJfHIKP6O90/en9nzAPqLHKxE1Gy7BDH/47p5WdkiJm1nC/rahr55P501XGZk=
+=BdyP
+-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/cddetect/cddetect-2.1.ebuild,v 1.3 2012/01/03 10:33:56 ssuominen Exp $
+
+EAPI=4
+inherit toolchain-funcs
+
+DESCRIPTION="A tool for detecting the type of a CD/DVD without mounting it"
+HOMEPAGE="http://www.bellut.net/projects.html"
+SRC_URI="http://www.bellut.net/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S=${WORKDIR}
+
+src_prepare() {
+ sed -i -e '1i#include <limits.h>' ${PN}.c || die #337628
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="-Wall ${CFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-optical</herd>
+</pkgmetadata>