--- /dev/null
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+CMAKE_BUILD_TYPE=Release
+
+inherit base multilib cmake-utils
+
+MY_P=CGAL-${PV}
+
+DESCRIPTION="Ipe addons shipped with the CGAL library"
+HOMEPAGE="http://www.cgal.org/ https://gforge.inria.fr/projects/cgal/"
+SRC_URI="
+ https://github.com/CGAL/cgal/releases/download/releases%2F${MY_P}/${MY_P}.tar.xz -> cgal-${PV}.tar.xz"
+
+LICENSE="LGPL-3 GPL-3 Boost-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="
+ media-gfx/ipe
+ =sci-mathematics/cgal-4.8*
+ "
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}/demo/CGAL_ipelets"
+
+src_prepare() {
+ cmake-utils_src_prepare
+ epatch ${FILESDIR}/c++11.patch
+}