{"id":24,"date":"2007-07-24T20:17:04","date_gmt":"2007-07-25T00:17:04","guid":{"rendered":"http:\/\/blogs.n1zyy.com\/andrew\/2007\/07\/24\/emerging-xdebug-200\/"},"modified":"2007-07-24T20:17:04","modified_gmt":"2007-07-25T00:17:04","slug":"emerging-xdebug-200","status":"publish","type":"post","link":"https:\/\/blogs.n1zyy.com\/andrew\/2007\/07\/24\/emerging-xdebug-200\/","title":{"rendered":"Emerging XDebug 2.0.0"},"content":{"rendered":"<p><a href=\"http:\/\/xdebug.org\">XDebug<\/a> has finally (after ~4 years, according to their website) gone 2.0. Unfortunately, there&#8217;s no ebuild for the new version in Gentoo&#8217;s Portage. Luckily, they&#8217;re really easy to create, as all you have to do is change the name of the file.<\/p>\n<p>The only trick, however, is that you&#8217;ll want to set it up in a portage overlay. But this is easy to setup, too.<\/p>\n<h2>Creating an Overlay<\/h2>\n<p>I created my overlay in <code>\/usr\/local\/portage<\/code>; it gives me a convenient place to store hacked up ebuilds (like this one). First, create the directory:<\/p>\n<pre><code># mkdir \/usr\/local\/portage\n# cd \/usr\/local\/portage<\/code><\/pre>\n<p>Now you need to add this directory to the <code>PORTDIR_OVERLAY<\/code> variable in <code>\/etc\/make.conf<\/code>. Multiple values are separated by spaces.<\/p>\n<h2>Building the eBuilds<\/h2>\n<pre><code># cd \/usr\/local\/portage\/\n# mkdir dev-php5\n# cd dev-php5\n# mkdir xdebug\n# cp \/usr\/portage\/dev-php5\/xdebug\/xdebug-2.0.0-rc4.ebuild .\/xdebug-2.0.0.ebuild\n# ebuild .\/xdebug-2.0.0.ebuild digest<\/code><\/pre>\n<p>It also depends on your <code>xdebug-client<\/code> package being the same version, so create one of those as well:<\/p>\n<pre><code># cd \/usr\/local\/portage\/\n# mkdir dev-php\n# cd dev-php\n# mkdir xdebug-client\n# cp \/usr\/portage\/dev-php\/xdebug-client\/xdebug-client-2.0.0-rc4.ebuild .\/xdebug-client-2.0.0.ebuild\n# ebuild .\/xdebug-client-2.0.0.ebuild digest<\/code><\/pre>\n<h2>Done<\/h2>\n<p>And now you should be ready to emerge the package like usual!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>XDebug has finally (after ~4 years, according to their website) gone 2.0. Unfortunately, there&#8217;s no ebuild for the new version in Gentoo&#8217;s Portage. Luckily, they&#8217;re really easy to create, as all you have to do is change the name of the file. The only trick, however, is that you&#8217;ll want to set it up in [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":0,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}